add systemd unit files
This commit is contained in:
parent
9cc13191d4
commit
4fcf7b290e
16
configs/drop.service
Normal file
16
configs/drop.service
Normal 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
9
configs/drop.socket
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Web file share socket
|
||||
PartOf=drop.service
|
||||
|
||||
[Socket]
|
||||
ListenStream=/tmp/drop.sock
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
Loading…
Reference in New Issue
Block a user