PDA

View Full Version : [ubuntu] service [re]start problem...have screenshot



alfamuzjak
January 18th, 2011, 06:01 PM
Tell me why i can't stop or restart service with:

sudo /etc/init.d/vsftpd restart

or:

sudo service vsftpd restart

I attach my screenshot

RobbanC
January 18th, 2011, 07:10 PM
Not sure. Tried to google and see what could be found. Looks like a bug somewere around the service-command. Again, I'm really not sure and can not find anything useful when searching.

Does it work anyway if you ignore the warning and use:


sudo /etc/init.d/vsftpd restart


Maybe someone else knows a better solution, to be able to use command 'service' ???

alfamuzjak
January 18th, 2011, 07:43 PM
Not sure. Tried to google and see what could be found. Looks like a bug somewere around the service-command. Again, I'm really not sure and can not find anything useful when searching.

Does it work anyway if you ignore the warning and use:


sudo /etc/init.d/vsftpd restart


Maybe someone else knows a better solution, to be able to use command 'service' ???

.../etc/init.d/vsf... never worked for me.
I dont know why

koenn
January 18th, 2011, 11:13 PM
according to the warning,
sudo restart vsftpd might work.

to see why "sudo /etc/init.d/vsftpd restart" doesn't work, you might just read the file /etc/init.d/vsftpd and figure out why it would complain about such things.

GDR!
January 18th, 2011, 11:22 PM
according to the warning,
sudo restart vsftpd might work.

It will restart the computer, actually.

My suggestion is to look at ftpd error log in /var/log and see if the error is there. Something may also be in /var/log/messages. Otherwise I usually kill the service (killall -9 vsftpd) and start it from command line (vsftpd). This way
you can see all the warnings vsftpd prints.

koenn
January 18th, 2011, 11:44 PM
It will restart the computer, actually.
doesn't look like it


@knoerft:~$ restart

restart: missing job name
Try `restart --help' for more information.

GDR!
January 18th, 2011, 11:50 PM
Whoops. Sorry.