add config for systemd
This commit is contained in:
parent
a5e75b3dca
commit
14f1c5addc
3 changed files with 26 additions and 1 deletions
14
subscribe-list.service
Normal file
14
subscribe-list.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=web server for managing subscriptions
|
||||
Requires=subscribe-list.socket
|
||||
|
||||
[Service]
|
||||
Environment=RUST_LOG=info
|
||||
Type=exec
|
||||
ExecStart=!sh -c 'mkdir -p /var/local/lib; umask 007; touch /var/local/lib/subscribe-list.db; chown www-data:www-data /var/local/lib/subscribe-list.db'
|
||||
ExecStart=/usr/local/bin/subscribe-list --config /etc/subscribe-list/config.toml serve --listen-fd
|
||||
User=www-data
|
||||
Group=www-data
|
||||
|
||||
[Install]
|
||||
Also=subscribe-list.socket
|
Loading…
Add table
Add a link
Reference in a new issue