File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Turn Me Off - HTTP API for system power management
3+ Documentation =https://github.com/SamyAB/turn-me-off
4+ After =network-online.target
5+ Wants =network-online.target
6+
7+ [Service]
8+ Type =simple
9+
10+ # Update this path according to your installation
11+ ExecStart =/usr/local/bin/turn-me-off
12+ Restart =on-failure
13+ RestartSec =5s
14+
15+ # Environment variables
16+ Environment ="TMF_PORT=3000"
17+ Environment ="RUST_LOG=turn_me_off=info"
18+
19+ # Security hardening
20+ NoNewPrivileges =true
21+ PrivateTmp =true
22+ ProtectSystem =strict
23+ ProtectHome =true
24+ ReadWritePaths =/var/log
25+
26+ # Logging
27+ StandardOutput =journal
28+ StandardError =journal
29+ SyslogIdentifier =turn-me-off
30+
31+ [Install]
32+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments