Skip to content

Commit

Permalink
use better services location; this can run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Sep 17, 2024
1 parent 2f1c3e7 commit 35e2a05
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion workspace/scripts/04-install-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] $SYSTEMD_DIR
sudo systemctl enable [email protected]
Expand Down
2 changes: 1 addition & 1 deletion workspace/scripts/08-install-pioreactorui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35e2a05

Please sign in to comment.