add systemd unit files

This commit is contained in:
bakatrouble 2019-03-08 18:40:41 +03:00
parent 9cc13191d4
commit 4fcf7b290e
2 changed files with 25 additions and 0 deletions

16
configs/drop.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=Web file share service
After=network.target
Requires=drop.socket
[Service]
Type=simple
User=arch
Group=arch
WorkingDirectory=/srv/apps/drop
ExecStart=/srv/apps/drop/venv/bin/python /srv/apps/drop/autoindex.py
KillSignal=SIGINT
Environment=ENV=PRODUCTION
[Install]
WantedBy=multi-user.target

9
configs/drop.socket Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Web file share socket
PartOf=drop.service
[Socket]
ListenStream=/tmp/drop.sock
[Install]
WantedBy=sockets.target