start printer service
This commit is contained in:
@@ -42,3 +42,8 @@ suseInsertService dracut_hostonly
|
|||||||
# Setup default target, multi-user
|
# Setup default target, multi-user
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
baseSetRunlevel 3
|
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
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user