start printer service
This commit is contained in:
parent
07ee5985d6
commit
cca7750786
@ -42,3 +42,8 @@ suseInsertService dracut_hostonly
|
||||
# Setup default target, multi-user
|
||||
#--------------------------------------
|
||||
baseSetRunlevel 3
|
||||
|
||||
pip install sysv-ipc --break-system-packages
|
||||
pip install pycstruct --break-system-packages
|
||||
pip install brother-ql --break-system-packages
|
||||
pip install qrcodes --break-system-packages
|
17
root/usr/lib/systemd/system/reHDDPrinter.service
Normal file
17
root/usr/lib/systemd/system/reHDDPrinter.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=reHDDPrinter
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
WorkingDirectory=/root/reHDDPrinter/
|
||||
ExecStart=/usr/bin/python3 /root/reHDDPrinter/reHDDPrinter.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user