diff options
Diffstat (limited to '')
-rw-r--r-- | alpine-chroot-systemd/soju.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/alpine-chroot-systemd/soju.service b/alpine-chroot-systemd/soju.service new file mode 100644 index 0000000..ed29c06 --- /dev/null +++ b/alpine-chroot-systemd/soju.service @@ -0,0 +1,16 @@ +[Unit] +Description=soju in an Alpine chroot +Requires=alpine.service +After=alpine.service + +[Service] +Type=simple +User=root +Group=root +# Fix the userspec to match the Alpine UID/GUID +ExecStart=/sbin/chroot --userspec=101:102 /alpine /usr/bin/soju +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure + +[Install] +WantedBy=multi-user.target |