Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.58 KB

File metadata and controls

57 lines (47 loc) · 1.58 KB

systemd Service Configuration

Example Configuration

[Unit]
Description=BCS - Birthday Calendar Service
After=network.target
Requires=network.target

[Service]
User=bcs
Group=bcs

Environment="TZ=Europe/Berlin"
ExecStart=/opt/bcg/bcs.jar
ExecStop=/bin/kill -15 $MAINPID
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target

Don’t forget to customize user, group and the path to the jar file!

Status Output

● bcg.service - BCG - Birthday Calendar Generator
     Loaded: loaded (/etc/systemd/system/bcg.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-06-28 19:13:14 CEST; 37s ago
   Main PID: 2287794 (bcs.jar)
      Tasks: 25 (limit: 9436)
     Memory: 219.5M (peak: 232.3M)
        CPU: 8.888s
     CGroup: /system.slice/bcg.service
             ├─2287794 /bin/bash /opt/bcg/bcs.jar
             └─2287813 /usr/bin/java -Dsun.misc.URLClassPath.disableJarChecking=true -jar /opt/bcg/bcs-4.0.1.jar

bcs.jar[2287813]: 19:13:15,751 |-INFO in org.springframework.boot.logging.logback.SpringBootJoranConfigurator@235a0c16 - Registering current configuration as safe fallback point
bcs.jar[2287813]: ______  _____ _____
bcs.jar[2287813]: | ___ \/  __ \  __ \
bcs.jar[2287813]: | |_/ /| /  \/ |  \/
bcs.jar[2287813]: | ___ \| |   | | __
bcs.jar[2287813]: | |_/ /| \__/\ |_\ \
bcs.jar[2287813]: \____/  \____/\____/
bcs.jar[2287813]: Version: 2.0.0
bcs.jar[2287813]: :: Spring Boot (v3.4.6) ::
bcs.jar[2287813]: running on java 17.0.15