~nhanb/pytaku

ref: 0.6.1 pytaku/contrib/systemd/pytaku.service -rw-r--r-- 397 bytes
41aac12eBùi Thành Nhân update poetry & readme for pypi 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# this goes in /etc/systemd/system/pytaku.service
[Unit]
Description=Pytaku server
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service

[Service]
Restart=on-abnormal
User=pytaku
Group=pytaku
WorkingDirectory=/home/pytaku/pytaku
ExecStart=/bin/bash -c 'export PATH=$PATH:$HOME/.local/bin; pytaku -w 10 -b 0.0.0.0:5001'

[Install]
WantedBy=multi-user.target