Debian Codegraph @

systemd/[email protected]

raw
1 # localslackirc
2 # Copyright (C) 2020-2025 Salvo "LtWorf" Tomaselli
3 #
4 # localslackirc is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # author Salvo "LtWorf" Tomaselli <[email protected]>
18
19 [Install]
20 WantedBy=multi-user.target
21
22 [Unit]
23 Description=Localslackirc
24 Documentation=man:localslackirc(1)
25 AssertPathExists=/etc/localslackirc.d/%i
26 PartOf=localslackirc.service
27 ReloadPropagatedFrom=localslackirc.service
28 Before=localslackirc.service
29
30 [Service]
31 Type=simple
32 Restart=always
33 ExecStart=/usr/bin/localslackirc --status-file ${STATE_DIRECTORY}/localslackirc-status-%i --log-suffix %i --control-socket ${RUNTIME_DIRECTORY}/localslackirc-%i.sock
34 # Using the same mode as /tmp so that after changing uid a control socket can still be created
35 RuntimeDirectory=localslackirc
36 RuntimeDirectoryMode=1777
37 StateDirectory=localslackirc
38 StateDirectoryMode=1777
39 # Log
40 StandardOutput=journal
41 StandardError=journal
42 SyslogIdentifier=localslackirc-%i
43 # Config
44 EnvironmentFile=/etc/localslackirc.d/%i
45 # Security
46 ProtectSystem=strict
47 PrivateDevices=true
48 LockPersonality=true