~nhanb/pytaku

ref: 0.4.1 pytaku/contrib/systemd/pytaku.service -rw-r--r-- 445 bytes
6aa2aa60Bùi Thành Nhân mangasee workaround 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# this goes in ~/.config/systemd/user/pytaku.service

# systemctl --user daemon-reload
# systemctl --user enable pytaku
# systemctl --user restart pytaku
# loginctl enable-linger <username>

[Unit]
Description=Pytaku server

[Service]
Environment="PYTHONUNBUFFERED=1"
ExecStart=/bin/bash -c 'export PATH=$PATH:$HOME/.local/bin; pytaku -w 10 -b 0.0.0.0:5001'
WorkingDirectory=/home/pytaku/pytaku
Restart=always

[Install]
WantedBy=default.target