Add slice file, update service file

This commit is contained in:
Joel Goguen
2022-02-21 11:50:55 -08:00
parent be9a06ce95
commit 43b40ad938
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[Unit]
Description=pihole-cloudsync resource limiter slice
Before=slices.target
[Slice]
CPUQuota=50%

View File

@ -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