Automatically execute daemon at startup

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Thorvald
Level 1
Level 1
Posts: 3
Joined: Wed Jul 18, 2018 1:34 pm

Automatically execute daemon at startup

Post by Thorvald » Wed Jul 18, 2018 5:33 pm

How do I configure a daemon to execute at startup?

Specifically, what is the command to put dropbox to work automatically. The daemon is in ~/.dropbox-dist/dropboxd

lazarus
Level 2
Level 2
Posts: 74
Joined: Mon Jul 02, 2018 11:36 pm
Location: Oberon, OZ

Re: Automatically execute daemon at startup

Post by lazarus » Wed Jul 18, 2018 10:14 pm

You could start a job via cron shortly after system boot (ala Timeshift.boot) but I think this'd be better suited to be called thru the Upstart event system.
- Andy

I may be weird but I'm saving up to become eccentric.

User avatar
trytip
Level 7
Level 7
Posts: 1844
Joined: Tue Jul 05, 2016 1:20 pm

Re: Automatically execute daemon at startup

Post by trytip » Wed Jul 18, 2018 10:46 pm

searching google came up with this https://unix.stackexchange.com/question ... background

usually google has everything. what have you tried so far?
Image

Thorvald
Level 1
Level 1
Posts: 3
Joined: Wed Jul 18, 2018 1:34 pm

Re: Automatically execute daemon at startup

Post by Thorvald » Thu Jul 19, 2018 6:03 pm

lazarus wrote:
Wed Jul 18, 2018 10:14 pm
You could start a job via cron shortly after system boot (ala Timeshift.boot) but I think this'd be better suited to be called thru the Upstart event system.
This is pretty complete. Thanks!

gm10
Level 7
Level 7
Posts: 1606
Joined: Thu Jun 21, 2018 5:11 pm

Re: Automatically execute daemon at startup

Post by gm10 » Thu Jul 19, 2018 6:24 pm

All good suggestions, but why so complicated? Just add it to the autostarts via the Startup Applications tool. Those execute at login, which is all you need for this daemon.

lazarus
Level 2
Level 2
Posts: 74
Joined: Mon Jul 02, 2018 11:36 pm
Location: Oberon, OZ

Re: Automatically execute daemon at startup

Post by lazarus » Thu Jul 19, 2018 9:40 pm

'Cos I was blind-sided by my biases? :oops:

Good call.
- Andy

I may be weird but I'm saving up to become eccentric.

Post Reply

Return to “Newbie Questions”