init problem with Intrepid
en0f
en0f at bokey.mine.nu
Thu Oct 30 16:59:21 UTC 2008
Cybe R. Wizard wrote:
> en0f <en0f at bokey.mine.nu> said:
>> Cybe R. Wizard wrote:
>>
>> [ .. ]
>>
>>> <sudo killall gdm> or Kdm or Xdm, depending upon what you run.
>>> After you finish whatever you're doing, <sudo gdm>
>> Gee! You don't kill off processes like that!
>>
>> You want -
>> $ invoke-rc.d gdm stop
>> or
>> $ /etc/init.d/gdm stop
>>
>> as root.
>>
> Are there reasons? I ask because it has always Worked For Me.
Yes. To allow the process to die with grace. :P)
When you killall(1) it sends SIGTERM (terminate process) by default (manual has more detail) which does not necessary mean files are cleaned up
properly (save PIDs, close FHs for e.g). However, when you invoke-rc.d or use init.d, it'll make sure it is shut properly using start-stop-daemon(8)
before sending the process SIGTERM.
--
en0f
More information about the ubuntu-users
mailing list