summaryrefslogtreecommitdiffstats
path: root/packaging/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/systemd')
-rw-r--r--packaging/systemd/meshbay-hub.service4
-rw-r--r--packaging/systemd/meshbay-node-user.service2
-rw-r--r--packaging/systemd/meshbay-node.service2
3 files changed, 4 insertions, 4 deletions
diff --git a/packaging/systemd/meshbay-hub.service b/packaging/systemd/meshbay-hub.service
index 2bea8ea..40cdb98 100644
--- a/packaging/systemd/meshbay-hub.service
+++ b/packaging/systemd/meshbay-hub.service
@@ -16,8 +16,8 @@ EnvironmentFile=-/etc/meshbay/hub.env
Environment=MESHBAY_DATABASE_URL=postgresql+asyncpg://meshbay:CHANGEME@localhost/meshbay_hub
Environment=MESHBAY_HUB_KEY=/etc/meshbay/hub_private.pem
-ExecStartPre=/usr/bin/meshbay-hub-migrate
-ExecStart=/usr/bin/meshbay-hub --config /etc/meshbay/hub.toml
+ExecStartPre=/opt/meshbay-common/venv/bin/alembic -c /opt/meshbay-hub/migrations/alembic.ini upgrade head
+ExecStart=/opt/meshbay-common/venv/bin/meshbay-hub --config /etc/meshbay/hub.toml
Restart=always
RestartSec=5
TimeoutStopSec=30
diff --git a/packaging/systemd/meshbay-node-user.service b/packaging/systemd/meshbay-node-user.service
index 62ca4de..feb415b 100644
--- a/packaging/systemd/meshbay-node-user.service
+++ b/packaging/systemd/meshbay-node-user.service
@@ -36,7 +36,7 @@ Type=simple
# configures a contact in Settings.
EnvironmentFile=-%h/.config/meshbay/node.env
-ExecStart=/usr/bin/meshbay-node --config %h/.config/meshbay/node.toml
+ExecStart=/opt/meshbay-common/venv/bin/meshbay-node --config %h/.config/meshbay/node.toml
# The client asks for a reload after changing a group's directories, and that
# must not drop a member who is watching a film.
ExecReload=/bin/kill -HUP $MAINPID
diff --git a/packaging/systemd/meshbay-node.service b/packaging/systemd/meshbay-node.service
index 5c4de6b..ad4dc40 100644
--- a/packaging/systemd/meshbay-node.service
+++ b/packaging/systemd/meshbay-node.service
@@ -24,7 +24,7 @@ WorkingDirectory=%h
# configures a contact in Settings.
EnvironmentFile=-%h/.config/meshbay/node.env
-ExecStart=/usr/bin/meshbay-node --config %h/.config/meshbay/node.toml
+ExecStart=/opt/meshbay-common/venv/bin/meshbay-node --config %h/.config/meshbay/node.toml
Restart=on-failure
RestartSec=10
TimeoutStopSec=30