Typicalc/typicalc.service

34 lines
648 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
2022-07-12 10:08:57 +00:00
ExecStart=/usr/bin/java -jar /opt/typicalc-1.0-SNAPSHOT.jar
2021-06-21 08:14:28 +00:00
ExecStop=/bin/kill -15 $MAINPID
ProtectSystem=strict
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
NoNewPrivileges=true
SystemCallArchitectures=native
LockPersonality=true
UMask=0177
RestrictAddressFamilies=AF_INET AF_INET6
[Install]
2022-07-12 10:08:57 +00:00
WantedBy=multi-user.target