Typicalc/typicalc.service

35 lines
739 B
SYSTEMD
Raw Normal View History

2021-06-21 08:14:28 +00:00
[Unit]
Description=Typicalc
After=syslog.target network.target
[Service]
# the JVM uses this exit code when stopping due to SIGTERM
SuccessExitStatus=143
User=typicalc
Group=typicalc
Type=simple
WorkingDirectory=/opt
ExecStart=/usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar /opt/typicalc-1.0-SNAPSHOT.jar
ExecStop=/bin/kill -15 $MAINPID
ProtectSystem=strict
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
NoNewPrivileges=true
2021-10-07 10:39:43 +00:00
CapabilityBoundingSet=~CAP_SYS_ADMIN
2021-06-21 08:14:28 +00:00
RestrictNamespaces=~user
SystemCallArchitectures=native
LockPersonality=true
UMask=0177
RestrictAddressFamilies=AF_INET AF_INET6
[Install]
WantedBy=multi-user.target