Skip to content

Commit c13b65d

Browse files
author
Kristan Kenney
committed
Update service start routine in v-start-service and improve logging
1 parent b4c85a4 commit c13b65d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-start-service

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ check_args '1' "$#" 'SERVICE'
2828
#----------------------------------------------------------#
2929

3030
if [ "$service" != 'iptables' ]; then
31-
service $service start >/dev/null 2>&1
32-
check_result $? "$service start failed" $E_RESTART
31+
systemctl start $service > /dev/null 2>&1
32+
check_result $? "ERROR: $service start failed" $E_RESTART
3333
else
3434
$BIN/v-update-firewall
35-
check_result $? "$service start failed" $E_RESTART
35+
check_result $? "ERROR: $service start failed" $E_RESTART
3636
fi
3737

3838

0 commit comments

Comments
 (0)