You are here: Foswiki>Service Web>VMLDeamon (21 May 2019, SebastianMueller)Edit Attach
Generate Deamon (it is not tested yet):

checkin as bob:

sudo -u bob bash

Create deamon:

daemon --name=[Name of deamon like fesa-server-gsi ]

--respawn --pidfiles= [Not temp file]

--command="[sh files]"

like:

daemon --name=configdb-fesa-server --respawn --pidfiles="/home/bob/configdb-fesa-server/" --command="/home/bob/configdb-fesa-server/bin/configdb-fesa-server.sh"

Stop Deamon:

daemon --stop -n [Name of deamon like a-server-gsi]

Restart Deamon:

sudo -u bob daemon --restart --name=[Name of deamon like a-server-gsi]

Autostart:

crontab -e

Adding in crontab sth. like that:

@reboot daemon --name=configdb-fesa-server --respawn --pidfiles="/home/bob/configdb-fesa-server/" --command="/home/bob/configdb-fesa-server/bin/configdb-fesa-server.sh"

-- SebastianMueller - 17 May 2019
Topic revision: r2 - 21 May 2019, SebastianMueller
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback