Transfer CFT 3.3.2 Users Guide Save PDF Selected topic Selected topic and subtopics All content Configure systemd services This section describes the steps you must perform to start and stop, or update, Transfer CFT from Central Governance with Linux systemd services defined. Note To perform the authorization procedures described in this page, you may want to refer to the sudoers documentation that corresponds with your Linux operating system. Start the service using Central Governance or Copilot Perform the following steps to configure the Transfer CFT systemd service to start via Central Governance or Copilot, where: The Transfer CFT systemd service is called: cft The command to start this service is: sudo systemctl start cft Authorize the Transfer CFT user to start the service without requiring a password. On Ubuntu/Debian, use the visudo command to add a file called cft to /etc/sudoers.d/: sudo visudo -f /etc/sudoers.d/cft Then add the following line: <USERNAME> ALL=NOPASSWD:/bin/systemctl start cft Create a script in the $CFTDIRRUNTIME/conf directory, for example called copcftstart, as follows: #!/bin/shsudo systemctl start cftrm $0 Set the UCONF copilot.misc.cftstart parameter to conf/copcftstart. uconfset id=copilot.misc.cftstart, value=conf/copcftstart Update using Central Governance with systemd services defined Configure support for the systemd service to apply updates via Central Governance, where: The systemd service created for Transfer CFT is called: cft The systemd service created for Copilot is called: cftcopilot Authorize the user that operates Transfer CFT to start and stop both services without requiring a password. On Ubuntu/Debian, use the visudo command to add a file called cft to /etc/sudoers.d/: sudo visudo -f /etc/sudoers.d/cft Add the following lines: <USERNAME> ALL=NOPASSWD:/bin/systemctl start cft <USERNAME> ALL=NOPASSWD:/bin/systemctl stop cft <USERNAME> ALL=NOPASSWD:/bin/systemctl start cftcopilot <USERNAME> ALL=NOPASSWD:/bin/systemctl stop cftcopilot Create a script in the $CFTDIRRUNTIME/conf directory for each command as follows: Define a copcftstart script that starts the Transfer CFT service: #!/bin/sh sudo systemctl start cft rm $0 Define a copcftstop script that stops the Transfer CFT service: #!/bin/sh sudo systemctl stop cft rm $0 Define a copcopilotstart script that starts the Copilot service: #!/bin/sh sudo systemctl start cftcopilot rm $0 Define a copcopilotstop script that stops the Copilot service: #!/bin/sh sudo systemctl stop cftcopilot rm $0 Set the following UCONF parameters, which reference the scripts to start and stop both services. uconfset id=copilot.misc.cftstart, value=conf/copcftstart uconfset id=copilot.misc.cftstop, value=conf/copcftstop uconfset id=copilot.misc.copstart, value=conf/copcopilotstart uconfset id=copilot.misc.copstop, value=conf/copcopilotstop Related Links
Configure systemd services This section describes the steps you must perform to start and stop, or update, Transfer CFT from Central Governance with Linux systemd services defined. Note To perform the authorization procedures described in this page, you may want to refer to the sudoers documentation that corresponds with your Linux operating system. Start the service using Central Governance or Copilot Perform the following steps to configure the Transfer CFT systemd service to start via Central Governance or Copilot, where: The Transfer CFT systemd service is called: cft The command to start this service is: sudo systemctl start cft Authorize the Transfer CFT user to start the service without requiring a password. On Ubuntu/Debian, use the visudo command to add a file called cft to /etc/sudoers.d/: sudo visudo -f /etc/sudoers.d/cft Then add the following line: <USERNAME> ALL=NOPASSWD:/bin/systemctl start cft Create a script in the $CFTDIRRUNTIME/conf directory, for example called copcftstart, as follows: #!/bin/shsudo systemctl start cftrm $0 Set the UCONF copilot.misc.cftstart parameter to conf/copcftstart. uconfset id=copilot.misc.cftstart, value=conf/copcftstart Update using Central Governance with systemd services defined Configure support for the systemd service to apply updates via Central Governance, where: The systemd service created for Transfer CFT is called: cft The systemd service created for Copilot is called: cftcopilot Authorize the user that operates Transfer CFT to start and stop both services without requiring a password. On Ubuntu/Debian, use the visudo command to add a file called cft to /etc/sudoers.d/: sudo visudo -f /etc/sudoers.d/cft Add the following lines: <USERNAME> ALL=NOPASSWD:/bin/systemctl start cft <USERNAME> ALL=NOPASSWD:/bin/systemctl stop cft <USERNAME> ALL=NOPASSWD:/bin/systemctl start cftcopilot <USERNAME> ALL=NOPASSWD:/bin/systemctl stop cftcopilot Create a script in the $CFTDIRRUNTIME/conf directory for each command as follows: Define a copcftstart script that starts the Transfer CFT service: #!/bin/sh sudo systemctl start cft rm $0 Define a copcftstop script that stops the Transfer CFT service: #!/bin/sh sudo systemctl stop cft rm $0 Define a copcopilotstart script that starts the Copilot service: #!/bin/sh sudo systemctl start cftcopilot rm $0 Define a copcopilotstop script that stops the Copilot service: #!/bin/sh sudo systemctl stop cftcopilot rm $0 Set the following UCONF parameters, which reference the scripts to start and stop both services. uconfset id=copilot.misc.cftstart, value=conf/copcftstart uconfset id=copilot.misc.cftstop, value=conf/copcftstop uconfset id=copilot.misc.copstart, value=conf/copcopilotstart uconfset id=copilot.misc.copstop, value=conf/copcopilotstop