24 lines
562 B
Desktop File
24 lines
562 B
Desktop File
[Unit]
|
|
Description=CUPS Printer Driver Manager
|
|
Documentation=https://git.workyai.cn/237899745/S905L3A
|
|
After=network.target cups.service
|
|
Wants=cups.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/opt/cups-driver-manager
|
|
ExecStart=/usr/bin/python3 /opt/cups-driver-manager/driver_manager.py --host 0.0.0.0 --port 632
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
Environment=DRIVER_MANAGER_PASSWORD=admin
|
|
Environment=DRIVER_MANAGER_ALLOW_PRIVATE_ONLY=1
|
|
|
|
# 安全设置
|
|
NoNewPrivileges=false
|
|
ProtectSystem=false
|
|
ProtectHome=false
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|