View Full Version : [ubuntu] execute command on ubuntu start
svecpetr
November 27th, 2009, 12:57 PM
hi, I need run command for my server start when ubuntu starts (not at user login)
I need SUDO rights!
could you help me, where to paste this command
/usr/local/share/mysqlard/mysqlard.server start
please
aysiu
November 29th, 2009, 07:50 AM
I think the root-executed startup scripts are in /etc/init.d/
You could perhaps symlink that command there?
svecpetr
November 29th, 2009, 05:23 PM
yep, you are right
but /etc/init.d is directory with many files ... usually one file per service (it about 3 kB of code)
and finally for existing any file with init.d you must have another file in /etc/r0-6.d/
that about next 3kB of code
... if some body helps me, how crete this files, I can add new service with rc_update.d
hey, I need execute only one command /usr/local/share/mysqlard/mysqlard.server start :o)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.