Skip to content

Commit

Permalink
eng-2434-systemd-bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sblack4 authored Oct 18, 2021
1 parent 23c5c52 commit 8b9a4e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/etc.init.d.iqserver.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN_AS_USER={{ iqserver_user }}
do_start()
{
cd $NEXUS_IQ_SERVER_HOME
su -m $RUN_AS_USER -c "java $JAVA_OPTIONS -jar nexus-iq-server-$VERSION.jar server config.yml > /dev/null 2>&1 &"
java $JAVA_OPTIONS -jar nexus-iq-server-$VERSION.jar server config.yml
echo "Started nexus-iq-server"
}

Expand Down
4 changes: 1 addition & 3 deletions templates/etc.systemd.system.iqserver.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ After=network.target
Type=simple
ExecStart=/etc/init.d/iqserver start
ExecStop=/etc/init.d/iqserver stop

# the initd script will run this as {{ iqserver_user }}
User=root
User={{ iqserver_user }}
Restart=on-abort

[Install]
Expand Down

0 comments on commit 8b9a4e7

Please sign in to comment.