summaryrefslogtreecommitdiffstats
path: root/systemd/pacredir.service
blob: a59399c699000b586854cb8aa59b49dcb3c02c20 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# (C) 2013-2021 by Christian Hesse <mail@eworm.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

[Unit]
Description=Redirect pacman requests via avahi service
Requires=avahi-daemon.service
After=avahi-daemon.service network.target network-online.target
Documentation=https://github.com/eworm-de/pacredir#pacredir

[Service]
Type=notify
ExecStart=/usr/bin/pacredir
ExecReload=/usr/bin/kill -HUP $MAINPID
DynamicUser=on
ProtectSystem=full
ProtectHome=on
PrivateDevices=on
NoNewPrivileges=on

[Install]
WantedBy=multi-user.target
Also=pacserve.service