First of all, we need to know what OS you are trying this on. Secondly, when you create a script you need to tell the script which shell you will be using in the first line of the script:
#!/bin/bash or something like that. Take a look at some of your other shell scripts. Also if you are using this script to start the service automatically you have to make sure you are running it as the correct user. You shouldn't have to create a "Script" to start a single line service though. You could put the command in the bootup process of your particular distro. Beren wrote: > Hi Guys, > > The bacula startup script won't start the director, however typing > "bacula-dir -c /etc/bacula/bacula-dir.conf" works fine. > > I tried putting this line into a script and running it: > > /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf > > It also didn't work...however, if I type it in the command line letter > for letter, it works fine. > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users