You can run the VMware Cloud Director Container Service Extension server as a service. To achieve this, it is necessary to install a sample systemd
unit.
Procedure
- From the VMware Cloud Director Container Service Extension installation location, copy the
cse.service
file and move it to/etc/systemd/system/cse.service
. - From the VMware Cloud Director Container Service Extension installation location, copy the
cse.sh
file and move it to/home/{user}.
Results
The sample
systemd
unit is now installed and you can start using the
VMware Cloud Director Container Service Extension service daemon with the following command:
systemctl start cse
What to do next
To activate, inactivate, and stop the
VMware Cloud Director Container Service Extension remotely, use the following commands in the
VMware Cloud Director Container Service Extension client:
# hook CSE unit into relevant places to automatically do things # depending on what's specified in the unit file $ vcd cse system enable # start CSE service now $ systemctl start cse # stop processing new requests, and finish processing existing requests # disables CSE service $ vcd cse system disable property value ---------- ---------------------- message CSE has been disabled. # wait until all active threads have finished, then exits CSE service $ vcd cse system stop -y property value ---------- ------------------------------ message CSE graceful shutdown started
If the
VMware Cloud Director Container Service Extension server is disabled, users will get the following message when executing any
VMware Cloud Director Container Service Extension command:
$ vcd cse cluster list Usage: vcd cse cluster list Error: CSE service is disabled. Contact the System Administrator.
To keep the service running after logout on Photon OS, check
/etc/systemd/logind.conf
and set
KillUserProcesses
to
no
:
[Login] KillUserProcesses=no