Skip to content

Commit

Permalink
Add systemd service & socket
Browse files Browse the repository at this point in the history
  • Loading branch information
mikroskeem committed Oct 2, 2022
1 parent 4e053ab commit 1cb3706
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions init/syringe.service
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions init/syringe.socket
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Socket]
ListenStream=/run/syringe/syringe.sock
SocketMode=0600
SocketUser=root
SocketGroup=root

[Install]
WantedBy=sockets.target

0 comments on commit 1cb3706

Please sign in to comment.