mirror of
https://github.com/stevejenkins/pihole-cloudsync.git
synced 2024-08-30 18:22:11 +00:00
Add slice file, update service file
This commit is contained in:
6
systemd/pihole-cloudsync.slice
Normal file
6
systemd/pihole-cloudsync.slice
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=pihole-cloudsync resource limiter slice
|
||||
Before=slices.target
|
||||
|
||||
[Slice]
|
||||
CPUQuota=50%
|
@ -5,3 +5,4 @@ Description=pihole cloud sync - %i
|
||||
Type=oneshot
|
||||
EnvironmentFile=-/etc/default/pihole-cloudsync.env
|
||||
ExecStart=/usr/local/bin/pihole-cloudsync --%i --branch $BRANCH --destdir $DESTDIR
|
||||
Slice=pihole-cloudsync.slice
|
||||
|
Reference in New Issue
Block a user