move services and timers on user level
This commit is contained in:
parent
c7d7ffd36f
commit
75ec7e8f62
4
PKGBUILD
4
PKGBUILD
|
@ -24,8 +24,8 @@ package() {
|
|||
|
||||
# copy systemd units
|
||||
install -d ${pkgdir}/usr/lib/systemd/system
|
||||
install -Dm644 ${srcdir}/systemd/services/* ${pkgdir}/usr/lib/systemd/system
|
||||
install -Dm644 ${srcdir}/systemd/timers/* ${pkgdir}/usr/lib/systemd/system
|
||||
install -Dm644 ${srcdir}/systemd/services/* ${pkgdir}/usr/lib/systemd/user
|
||||
install -Dm644 ${srcdir}/systemd/timers/* ${pkgdir}/usr/lib/systemd/user
|
||||
|
||||
# copy alpm hooks
|
||||
install -d ${pkgdir}/usr/share/libalpm/hooks
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
post_install() {
|
||||
find /usr/lib/systemd/system/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl enable
|
||||
find /usr/lib/systemd/system/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl start
|
||||
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user enable
|
||||
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user start
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user enable
|
||||
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl --user restart
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user