Creo View MCAD Adapters Guide > Installing the Adapters > Running the PTC Worker Daemon
Running the PTC Worker Daemon
The procedures described in this section allow you to configure the PTC Worker Daemon to run either as a program, or as a service, which is the default. The Windows Installer configures the PTC Worker Daemon as a Windows service. If necessary, you can change the user account that is used by the service. If you choose to skip this during the installation process, you can still manually run the Worker Daemon from the Command Prompt.
Changing the PTC Worker Daemon Service Login Account
1. By default, the PTC Worker Daemon Windows service is installed and configured to run as the local SYSTEM account. You can also use the Windows Control Panel Services utility to change the log on account it runs under.
Open the Properties window for the PTC Worker Daemon service.
2. From the Log On tab, select This account, and pick the account you want to run under. Use Browse to display the Select User list, and select a name from the list. For example, you can run the Worker Daemon from the administrator account.
Enter a password, and click OK. The account you selected is now configured to run the Worker Daemon as a service.
Running the Worker Daemon as a Program
These procedures describe how to run the Worker Daemon as a program.
There are several ways to start the Worker Daemon. The Worker Daemon can run not only as a service in the background, as described above, but it can also be run as a program. To run the Worker Daemon as a program, select one of the following options:
Start the Worker Daemon by double-clicking the WorkerDaemon.exe file. The Worker Daemon executable on the worker machine must be running at all times, as explained in the next note.
* 
After the user is logged off on the worker machine, the Worker Daemon process ends. Alternatively, the Worker Daemon can remain running by locking the workstation instead of logging out. In this case, the machine is left in a secure state. To lock the workstation, press CTRL+ALT+DEL, then click Lock Computer.
Start the Worker Daemon using a command line parameter. By default, the Worker Daemon listens on port 601. The Worker Daemon can be forced to use another port by specifying the port number as a command line parameter when starting the Worker Daemon.
Start the Worker Daemon using Auto Start. The Worker Daemon is started automatically when the computer starts by creating a shortcut to it and then placing the shortcut in the following directory:
%ALLUSERSPROFILE%\Start Menu\Programs\Startup
Where %ALLUSERSPROFILE% is the traditionally out-of-the-box Windows environment variable pointing to the "All Users" profile directory.
About the Worker Daemon Log File
The Worker Daemon produces a log file in the same folder as the WorkerDaemon.exe (<Adapters\x86e_win64\obj), which is important to refer to when debugging a Worker Daemon problem. When the Worker Daemon runs as a service, the name of the log file is WorkerDaemonSvc.log, and the when the Worker Daemon runs as a program, the name of the log file is WorkerDaemon.log. The log file shows when the Worker Daemon is running, the commands it receives, what port it is listening on, along with other event information.
* 
All Worker Daemon processes, irrespective of the port and service name, will write to the same log file.
Was this helpful?