From a script how to shutdown gracefully?

Asked by Stephen Gornick

There doesn't appear to be any command line option to shutdown gwibber-service ... e.g., "gwibber-service stop". Instead I need to use kill -HUP. Is there be a better way to do a shutdown of the service? (If not, should there be?)

Question information

Language:
English Edit question
Status:
Answered
For:
Gwibber Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
PeterPall (peterpall) said :
#1

Most of the services can be started and stopped by the service command.
service gwibber stop should do the trick then ...but I don't know if gwibber-service really is treated as a service.

Seems like someone else had the same idea, though, and registered it as a blueprint: https://blueprints.launchpad.net/gwibber/+spec/option-disable-gwibber-service

Revision history for this message
Ken VanDine (ken-vandine) said :
#2

gwibber-service is a dbus service, and is generally started ondemand. It isn't a system service, so not start and stop scrips needed. To stop it from the command line, or from a shell script:

dbus-send --type=method_call --dest=com.Gwibber.Service /com/gwibber/Service com.Gwibber.Service.Quit

Can you help with this problem?

Provide an answer of your own, or ask Stephen Gornick for more information if necessary.

To post a message you must log in.