Skip to content

Commit

Permalink
fix admin phal (#78)
Browse files Browse the repository at this point in the history
This makes ovos-admin-phal run, but will not restart with `systemd --user restart ovos`
  • Loading branch information
builderjer authored Aug 24, 2023
1 parent 45ae058 commit 28261c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stage-phal/02-admin/01-run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e

install -v -m 0755 files/ovos-systemd-admin-phal "${ROOTFS_DIR}/usr/libexec/ovos-systemd-admin-phal"
install -v -m 0644 files/ovos-admin-phal.service "${ROOTFS_DIR}/etc/systemd/user/ovos-admin-phal.service"
install -v -m 0644 files/ovos-admin-phal.service "${ROOTFS_DIR}/etc/systemd/system/ovos-admin-phal.service"

echo "enable ovos-admin-phal.service" >> "${ROOTFS_DIR}/etc/systemd/user-preset/10-ovos-user.preset"
echo "enable ovos-admin-phal.service" >> "${ROOTFS_DIR}/etc/systemd/system-preset/10-ovos-system.preset"

4 changes: 2 additions & 2 deletions stage-phal/02-admin/files/ovos-admin-phal.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=ovos-messagebus.service

[Service]
Type=notify
User=root
User=ovos
ExecStart=/usr/libexec/ovos-systemd-admin-phal
TimeoutStartSec=1m
TimeoutStopSec=1m
Expand All @@ -17,4 +17,4 @@ StartLimitBurst=4
#WatchdogSec=30s

[Install]
WantedBy=ovos.service
WantedBy=default.target

0 comments on commit 28261c8

Please sign in to comment.