diff --git a/tools/template-nbscloud.service b/tools/template-nbscloud.service index c89d75f..60dbee5 100644 --- a/tools/template-nbscloud.service +++ b/tools/template-nbscloud.service @@ -1,30 +1,19 @@ -[unit] +[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 \ No newline at end of file