blob: 0d9c338754c26d3c726fb200f8376f15290af602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[Unit]
Description=Cellframe Node
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/cellframe-node
ExecStartPre=+/bin/chown -R cellframe:cellframe /opt/cellframe-node
ExecStart=/opt/cellframe-node/bin/cellframe-node
ExecStop=/bin/kill -SIGTERM $MAINPID
Restart=always
User=cellframe
Group=cellframe
RestartSec=10
LogNamespace=cellframe
StandardOutput=null
StandardError=journal
# Hardening
ProtectSystem=full
ProtectHome=read-only
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
|