~nhanb/pytaku

ref: 0.4.1 pytaku/contrib/systemd/pytaku-scheduler.service -rw-r--r-- 439 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-scheduler.service

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

[Unit]
Description=Pytaku scheduler

[Service]
Environment="PYTHONUNBUFFERED=1"
ExecStart=/home/pytaku/.local/bin/pytaku-scheduler
WorkingDirectory=/home/pytaku/pytaku
Restart=always

[Install]
WantedBy=default.target