Skip to content

Commit bbddae6

Browse files
committed
Added systemd service setup script
1 parent 351da04 commit bbddae6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

deploy/setup_systemd.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) ClaceIO, LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Script to create the openrun user/group, install and then create the systemd service
5+
6+
set -ex
7+
groupadd --system openrun
8+
useradd --system --gid openrun --create-home --home-dir /var/lib/openrun \
9+
--shell /usr/bin/bash --comment "OpenRun" openrun
10+
11+
su -l openrun /bin/bash -c "export OPENRUN_HOME=/var/lib/openrun; curl -sSL https://openrun.dev/install.sh | sh"
12+
13+
mkdir -p /etc/systemd/system
14+
curl -sSLo /etc/systemd/system/openrun.service https://raw.githubusercontent.com/openrundev/openrun/main/deploy/init/openrun.service
15+
16+
systemctl daemon-reload
17+
systemctl enable --now openrun
18+
systemctl status openrun

0 commit comments

Comments
 (0)