Re: help writing a service file for dropbox

2014-09-22 Thread T.C. Hollingsworth
On Mon, Sep 22, 2014 at 12:40 PM, Steven Stern wrote: > Can I treat a .service file like a bash script and do all those "loop" > sorts of things? No, but you can invoke a bash script from a service file that does things in a loop. But that doesn't buy you much^D anything really over the initial

Re: help writing a service file for dropbox

2014-09-22 Thread Steven Stern
On 09/22/2014 09:18 AM, Dan Mossor wrote: > On 08/24/2014 08:52 PM, Richard Shaw wrote: >> On Sun, Aug 24, 2014 at 10:38 AM, Steven Stern >> mailto:subscribed-li...@sterndata.com>> >> wrote: >> >> Ideally, I'd look at a list of users entered in a file in >> /etc/sysconfig >> and loop throug

Re: help writing a service file for dropbox

2014-09-22 Thread Dan Mossor
On 08/24/2014 08:52 PM, Richard Shaw wrote: On Sun, Aug 24, 2014 at 10:38 AM, Steven Stern mailto:subscribed-li...@sterndata.com>> wrote: Ideally, I'd look at a list of users entered in a file in /etc/sysconfig and loop through ExecStart and User for each user, substituting the user

Re: help writing a service file for dropbox

2014-08-24 Thread Steven Stern
On 08/24/2014 08:52 PM, Richard Shaw wrote: > On Sun, Aug 24, 2014 at 10:38 AM, Steven Stern > mailto:subscribed-li...@sterndata.com>> > wrote: > > Ideally, I'd look at a list of users entered in a file in /etc/sysconfig > and loop through ExecStart and User for each user, substituting the

Re: help writing a service file for dropbox

2014-08-24 Thread Richard Shaw
On Sun, Aug 24, 2014 at 10:38 AM, Steven Stern < subscribed-li...@sterndata.com> wrote: > Ideally, I'd look at a list of users entered in a file in /etc/sysconfig > and loop through ExecStart and User for each user, substituting the user > name for "sdstern" on each. > > So, pointers on how to do

help writing a service file for dropbox

2014-08-24 Thread Steven Stern
There's an init.d file for Dropbox for non-GUI servers. I'd like to use drobpox as a way to understand systemd a little better. In the init.d file, it pulls in a list of users from /etc/sysconfig. I'm trying to figure out how to do something like that with a service file. My dropbox.service file