Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: uggla on October 06, 2010, 02:26:48 AM

Title: [solved] Starting service from ondemand
Post by: uggla on October 06, 2010, 02:26:48 AM
I want to start cups from an ondemand item. I've added the following line but it doesn't work:
[ $(which cups) ] && exec sudo /etc/init.d/cups start
Could someone please give me the right syntax?

regards
/Uggla
Title: Re: Starting service from ondemand
Post by: uggla on October 06, 2010, 08:26:15 AM
Nevermind. I wasn't understanding the purpose of the [ $(which cups) ]. I checked it up and and found that I should remove it to make it work.

/Uggla
Title: Re: [solved] Starting service from ondemand
Post by: Juanito on October 06, 2010, 08:50:45 AM
..and it also depends on the version of the cups extension you use - for cups.tcz, that would be /usr/local/etc/init.d/cups start

..or you could use the services right-click menu item to start cups