Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create /lib/systemd/system/ptokax.service
- Код:
- [Unit]
- Description=Ptokax DC Hub
- After=network.target
- [Service]
- ExecStart=path/to/bin/ptokax -c /path/to/cfgdir/ptokax
- User=ptokax user
- Group=ptokax group
- Restart=always
- RestartSec=5s
- WorkingDirectory=/path/to/cfgdir/ptokax
- CapabilityBoundingSet=CAP_NET_BIND_SERVICE
- AmbientCapabilities=CAP_NET_BIND_SERVICE
- PrivateTmp=yes
- PrivateDevices=yes
- ProtectSystem=full
- ProtectHome=yes
- NoNewPrivileges=yes
- [Install]
- WantedBy=multi-user.target
- console exec:
- systemctl daemon-reload
- systemctl enable ptokax.service
- systemctl start ptokax.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement