Restart option added to sysvinit script

And some small bug fix.