-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtapedeck.service
36 lines (34 loc) · 888 Bytes
/
tapedeck.service
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
27
28
29
30
31
32
33
34
35
36
# cp to /etc/systemd/system/
# systemctl daemon-reload
# systemctl start tapedeck
# systemctl status tapedeck
# systemctl enable tapedeck
[Unit]
Description=tapedeck daemon service
After=network.target network-online.target nss-lookup.target basic.target
Wants=network-online.target nss-lookup.target
StartLimitIntervalSec=30
StartLimitBurst=3
[Service]
Restart=on-failure
RestartSec=30
WorkingDirectory=/etc/tapedeck
ExecStart=/usr/local/tapedeck/tapedeck prod /etc/tapedeck/tapedeck.json
ExecReload=/bin/kill -HUP $MAINPID
LimitNOFILE=65535
NoNewPrivileges=true
ProtectHome=true
ProtectSystem=full
ProtectHostname=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
LockPersonality=true
RestrictRealtime=yes
RestrictNamespaces=yes
MemoryDenyWriteExecute=yes
PrivateDevices=yes
PrivateTmp=true
CapabilityBoundingSet=
[Install]
WantedBy=multi-user.target