1
0
Files
NoBullShit-cloud/tools/template-nbscloud.service
MK13 c7b8f0c949 #8 Add Jenkins jobs
#9 Add systemd user service

Add deployment script and systemd service file
2022-05-08 21:11:11 +02:00

30 lines
603 B
Desktop File

[unit]
Description=NoBullShit-cloud - A personal cloud without bullshit
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
DynamicUser=true
# Values substituted from application.properties
User=USER_R
Group=USER_R
ExecStart=java -jar DEPLOY_PATH_R/nbscloud.jar
ReadWritePaths=BASE_DIR_R
# Hardening
CapabilityBoundingSet=
AmbientCapabilities=
NoNewPrivileges=true
ProtectHome=true
ProtectSystem=full
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
PrivateTmp=true
LockPersonality=true
[Install]
WantedBy=multi-user.target