diff --git a/workspace/scripts/04-install-services.sh b/workspace/scripts/04-install-services.sh index a697608..8f6c371 100644 --- a/workspace/scripts/04-install-services.sh +++ b/workspace/scripts/04-install-services.sh @@ -11,7 +11,7 @@ install_cleanup_trap # systemd: add long running pioreactor jobs -SYSTEMD_DIR=/lib/systemd/system/ +SYSTEMD_DIR=/etc/systemd/system/ sudo cp /files/system/systemd/pioreactor_startup_run@.service $SYSTEMD_DIR sudo systemctl enable pioreactor_startup_run@monitor.service diff --git a/workspace/scripts/08-install-pioreactorui.sh b/workspace/scripts/08-install-pioreactorui.sh index 796a4a0..e4378fb 100644 --- a/workspace/scripts/08-install-pioreactorui.sh +++ b/workspace/scripts/08-install-pioreactorui.sh @@ -12,7 +12,7 @@ source /common.sh install_cleanup_trap UI_FOLDER=/var/www/pioreactorui -SYSTEMD_DIR=/lib/systemd/system/ +SYSTEMD_DIR=/etc/systemd/system/ mkdir /var/www diff --git a/workspace/scripts/files/system/systemd/create_diskcache.service b/workspace/scripts/files/system/systemd/create_diskcache.service index 9809eda..b131e08 100644 --- a/workspace/scripts/files/system/systemd/create_diskcache.service +++ b/workspace/scripts/files/system/systemd/create_diskcache.service @@ -4,7 +4,6 @@ After=network.target firstboot.service Before=lighttpd.service huey.service [Service] -User=pioreactor ExecStart=/bin/bash /usr/local/bin/create_diskcache.sh ExecStartPost=pio log -m "%n successful" -n systemd --local-only Type=oneshot