20 lines
336 B
SYSTEMD
20 lines
336 B
SYSTEMD
|
[Unit]
|
||
|
Description=claper
|
||
|
|
||
|
[Service]
|
||
|
User=claper
|
||
|
Group=claper
|
||
|
EnvironmentFile=/etc/default/claper
|
||
|
ExecStart=/usr/bin/mix phx.server
|
||
|
WorkingDirectory=/opt/claper
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
ProtectHome=true
|
||
|
ProtectSystem=strict
|
||
|
Restart=on-failure
|
||
|
RestartSec=30s
|
||
|
ReadWritePaths=/opt/claper
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|