From 1cb3706e966222352da943610970aaf4fd66a5de Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Sun, 2 Oct 2022 06:23:17 +0300 Subject: [PATCH] Add systemd service & socket --- init/syringe.service | 13 +++++++++++++ init/syringe.socket | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 init/syringe.service create mode 100644 init/syringe.socket diff --git a/init/syringe.service b/init/syringe.service new file mode 100644 index 0000000..ed8db26 --- /dev/null +++ b/init/syringe.service @@ -0,0 +1,13 @@ +[Unit] +After=syringe.socket +Requires=syringe.socket +Wants=syringe.socket + +[Service] +Type=dbus +BusName=ee.zentria.syringe1.Syringe +ExecStart=/usr/bin/syringe server + +[Install] +WantedBy=multi-user.target +Alias=dbus-ee.zentria.syringe.Syringe.service \ No newline at end of file diff --git a/init/syringe.socket b/init/syringe.socket new file mode 100644 index 0000000..f18f042 --- /dev/null +++ b/init/syringe.socket @@ -0,0 +1,8 @@ +[Socket] +ListenStream=/run/syringe/syringe.sock +SocketMode=0600 +SocketUser=root +SocketGroup=root + +[Install] +WantedBy=sockets.target \ No newline at end of file