Deployment¶
There are several ways to start WatchGhost. You can use a systemd service or a uWSGI file for example. And serve it through a web server like Nginx.
uWSGI¶
A uWSGI file looks like that:
[uwsgi]
attach-daemon = /path/to/your/watchghost --config=/path/to/your/config
Systemd service¶
We propose a ready to use Systemd setting.
Place the following content in watchghost.service
in the Systemd unit search path (usually /usr/lib/systemd/system/watchghost.service
, but it may change given your distribution) :
[Unit]
Description=Watchghost daemon
After=network.target
[Service]
User=watchghost
Group=watchghost
ExecStart=/usr/bin/watchghost --config=/etc/watchghost
ExecReload=/bin/kill -SIGHUP $MAINPID
[Install]
WantedBy=multi-user.target
Place the following content in a file in a Sysusers directory (usually /usr/lib/sysusers.d/watchghost.conf
, but it may change given your distribution) :
u watchghost - -
Nginx¶
And a Nginx configuration looks like something like that: