Linux services: is there a GUI for services?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Dream Voyager Looping
--
Chapters
00:00 Linux Services: Is There A Gui For Services?
00:44 Accepted Answer Score 5
01:04 Answer 2 Score 1
01:15 Answer 3 Score 2
01:38 Answer 4 Score 0
02:38 Thank you
--
Full question
https://superuser.com/questions/171569/l...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #services #gui #tomcat #init
#avk47
ACCEPTED ANSWER
Score 5
Try sysv-rc-conf
to alter the runlevel settings.
and chkconfig
to see what's running
Don't forget that ubuntu (and others?) are starting to use the Upstart Startup Manager, so you'll have to keep an eye on the /etc/init directory too
ANSWER 2
Score 2
On my Redhat (err, Centos) box:
curses: ntsysv
gui: system-config-services
On another note, remember to add the descriptive comment stanza to the top of your file. chkconfig and other tools (like ntsysv) read this.
ANSWER 3
Score 1
If you also consider a web alternative, I suggest you to have a look at webmin.
ANSWER 4
Score 0
Once upon a time I wrote a zenity-GUI myself. In short words: It looks for files in init.d, greps for the case statements, and tries to guess what should be displayed on the fly.
Maybe it doesn't work well for all services, but for my work (cups, postgresql, ...) it's sufficient.
As a side note, it shows how to dynamically fit your window to screensize (maximum) and content size (width, length).
Here it is:
#!/bin/bash
#
# oetv.sh
# Show all servives in /etc/init.d in a list, and let the user choose how to start it.
#
# (c) 2008 Stefan Wagner, license GPLv3
#
# Search /etc/init.d/ for all executable files
# Get their number, and the maximum name size to produce a fitting window
width=0
height=0
# The font will influence the optimal window size
# But I don't know how to get them.
# Probably depending on windowmanager, desktop, usersettings
function xyFromList
{
anz=0
wmax=0
for file in $1
do
anz=$((anz+1))
len=${#file}
[ $len -gt $wmax ] && wmax=$len
done;
width=$((wmax*9+50))
height=$((anz*26+160))
}
dienstlist=$(ls /etc/init.d/ )
xyFromList "$dienstlist"
dienst=$(zenity --width=$width --height=$height --list --text "Service schalten" --column "Dienst" $dienstlist)
[ "foo"$dienst == "foo" ] && exit
# select options for the service, and display an apropriate window
optionen=$(egrep -h "[a-z]+\)" /etc/init.d/$dienst | sed 's/^[ \t]*//;s/).*/)/;s/#.*//;s/)//g;s/|/ /g' | sort -u)
xyFromList "$optionen"
aktion=$(zenity --width=$width --height=$height --list --text "Service schalten" --column "Befehl" $optionen)
[ "foo"$aktion == "foo" ] && exit
result=$(gksudo /etc/init.d/$dienst $aktion)
zenity --info "$aktion" --text "$result"