Skip to content

Commit

Permalink
[dist] fix appliance upstart after switch to systemd
Browse files Browse the repository at this point in the history
* fix ownership for log and run dirs
* fixes for startup ordering of daemons
  • Loading branch information
M0ses authored and coolo committed Nov 14, 2018
1 parent 20d062b commit 1f68018
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/obsstoragesetup
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ case "$1" in
[ -d $backenddir/run ] || mkdir -p $backenddir/run
[ -d $backenddir/log ] || mkdir -p $backenddir/log
# fix ownership
chown $bsuser:$bsgroup $backenddir
chown $bsuser:$bsgroup $backenddir{,/log,/run}
chmod g+w $backenddir{/log,/run}
fi

# offer hook to make random special things in your setup
Expand Down
2 changes: 1 addition & 1 deletion dist/systemd/obsrepserver.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=OBS repository server
After=network.target
After=network.target obsstoragesetup.service

[Service]
EnvironmentFile=/etc/sysconfig/obs-server
Expand Down
2 changes: 1 addition & 1 deletion dist/systemd/obsservice.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=OBS source service server
After=network.target
After=network.target obsstoragesetup.service

[Service]
EnvironmentFile=/etc/sysconfig/obs-server
Expand Down
2 changes: 1 addition & 1 deletion dist/systemd/obsservicedispatch.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=OBS source service dispatcher
After=obsstoragesetup.service
After=obsstoragesetup.service obsservice.service

[Service]
EnvironmentFile=/etc/sysconfig/obs-server
Expand Down
2 changes: 1 addition & 1 deletion dist/systemd/obssrcserver.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=OBS source repository server
After=network.target
After=network.target obsstoragesetup.service obsservice.service

[Service]
EnvironmentFile=/etc/sysconfig/obs-server
Expand Down

0 comments on commit 1f68018

Please sign in to comment.