-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This service does not need to be enabled in the system. It will be started automatically if a connection to one of the listening sockets is made. System group named stm is required for stm-user.socket to work correctly. Change-Id: I21276d43879ef18becb49bf3fa7694bcf842ee0a
- Loading branch information
1 parent
60fee87
commit 3cb3d7d
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=User socket activation for STM daemon | ||
|
||
[Socket] | ||
SocketMode=0660 | ||
SocketGroup=stm | ||
ListenStream=/run/stm-user.socket | ||
Service=stm.service | ||
|
||
[Install] | ||
WantedBy=sockets.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=STM RPC | ||
Requires=stm-user.socket | ||
Requires=stm.socket | ||
|
||
[Service] | ||
ExecStart=/usr/bin/stm -serve | ||
KillSignal=SIGINT | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Admin socket activation for STM daemon | ||
|
||
[Socket] | ||
SocketMode=0660 | ||
ListenStream=/run/stm.socket | ||
|
||
[Install] | ||
WantedBy=sockets.target |