aboutsummaryrefslogtreecommitdiff
path: root/roles/pihole/files/pihole.service
blob: 6d992d0c8bfb3d16a365e91e57143d6b8531849b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Manage PiHole
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
RemainAfterExit=true
User=root
ExecStart=/usr/local/bin/podman-compose -f /opt/containers/pihole.yaml up -d
ExecStop=/usr/local/bin/podman-compose  -f /opt/containers/pihole.yaml down

[Install]
WantedBy=multi-user.target