Difference between revisions of "Automatic start by using systemd"
From aquarium-doc
Jump to navigationJump to search
| Line 19: | Line 19: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</code> | </code> | ||
Upon creation/modification of the unit file, one must run the command <code>sudo systemctl daemon-reload</code> in order to activate the changes. | Upon creation/modification of the unit file, one must run the command <code>sudo systemctl daemon-reload</code> in order to activate the changes. | ||
For starting the control application manually via systemd, one can use the command <code>sudo systemctl start aquarium-ctrl</code>. | For starting the control application manually via systemd, one can use the command <code>sudo systemctl start aquarium-ctrl</code>. | ||
Revision as of 21:12, 4 October 2022
The content of systemd unit file /lib/systemd/system/aquarium-ctrl.service as following:
[Unit]
Description=Aquarium Control Application
After=multi-user.target
[Service]
Type=forking
ExecStart=bash /usr/local/src/aquarium-ctrl/aquarium-ctrl-startup.sh
[Install]
WantedBy=multi-user.target
Upon creation/modification of the unit file, one must run the command sudo systemctl daemon-reload in order to activate the changes.
For starting the control application manually via systemd, one can use the command sudo systemctl start aquarium-ctrl.