help writing a service file for dropbox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 is:


cat /etc/systemd/system/dropbox.service

---------------------------------------

[Unit]
Description=Dropbox as a system service

[Service]
ExecStart=/home/sdstern/.dropbox-dist/dropboxd
User=sdstern
# 'LANG' might be unnecessary, since systemd already sets the
# locale for all services according to "/etc/locale.conf".
# Run `systemctl show-environment` to make sure.
Environment=LANG=en_US.utf-8

[Install]
WantedBy=multi-user.target

---------------------------------------

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 things like this in a .service file?


-- 
-- Steve
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux