Skip to content

Instantly share code, notes, and snippets.

@linpan0
linpan0 / gist:d1e4cc624e4e9d5ac3813a5c3cbc6378
Created May 7, 2024 02:53 — forked from GuySawyer/gist:fae11b0efefd20927ef029c6b3c6fd4e
Raspberry Pi 3 - Starting a Java JAR on Boot using systemd
Jessie has moved away from sysvinit and onto systemd. Writing an init script to /etc/init.d/ is outdated,
and a bit tedious since you have to handle the start/stop/restart logic yourself (if you want those capabilities).
New Method:
1. Write a unit file for systemd.
$ sudo nano /etc/systemd/system/your_jar_software.service
[Unit]
Description=Example on starting a JAR with systemd