From 3847d0479192f3150df19affe8d8712f83167ac8 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 25 Nov 2021 07:53:25 +0800 Subject: Add systemd services --- init/jimbrella-routine.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 init/jimbrella-routine.service (limited to 'init/jimbrella-routine.service') diff --git a/init/jimbrella-routine.service b/init/jimbrella-routine.service new file mode 100644 index 0000000..b641028 --- /dev/null +++ b/init/jimbrella-routine.service @@ -0,0 +1,12 @@ +[Unit] +Description=JImbrella routine + +[Service] +User=jim +Type=oneshot +WorkingDirectory=/opt/jimbrella +ExecStart=python3 -m jimbrella.routine +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3