Systemctl service, some question on start on boot

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Systemctl service, some question on start on boot

Postby Chryses » Fri Feb 21, 2014 5:47 pm

Hi, I'm configuring the nsa325v2, all works very well.

Now is time to fix all little issue that I found.

I use systemctl system and is very helpfull, for example how can I run at boot a process after the netup and time-sync?
I've installed sickbeard and I use this service to run at boot:
$this->bbcode_second_pass_code('', '[Unit]
Description=SickBeard Daemon
After=network.target

[Service]
User=muletto
ExecStart=/usr/bin/env nice -n 19 python2 /home/muletto/.sickbeard/SickBeard.py --quiet --config /home/muletto/.sickbeard/config.ini --datadir /home/muletto/.sickbeard

[Install]
WantedBy=multi-user.target')

Works, but every time I reboot on the sickbeard log, I've this
$this->bbcode_second_pass_code('', '1970-01-01 01:00:29 CHECKVERSION :: git fetch origin returned : fatal: unable to access 'https://github.com/mr-orange/Sick-Beard.git/': SSL certificate problem: certificate is not yet valid
1970-01-01 01:00:29 CHECKVERSION :: Unable to contact github, can't check for update')

After the first few lines, the date return normal so I've no problem.

Any way to "fix" this?

Jo
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby WarheadsSE » Fri Feb 21, 2014 7:22 pm

ntpdate.service
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Systemctl service, some question on start on boot

Postby Chryses » Fri Feb 21, 2014 7:34 pm

Tnx, so, correct me if I wrong, should be
After=network.target ntpdate.service

Ps, I can't found a way to have a list of all service that start at boot, do you know a way?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby WarheadsSE » Fri Feb 21, 2014 7:36 pm

$this->bbcode_second_pass_code('', 'tree /etc/systemd/system')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Systemctl service, some question on start on boot

Postby Chryses » Fri Feb 21, 2014 7:56 pm

Tnx, but this is the service that I put on it, right?
Possible that there is other service that run by default?

My "goal" is to try to eliminate the service that don't really need for the nas, I don't know if my idea is right or not.What do you think?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby WarheadsSE » Fri Feb 21, 2014 8:02 pm

That is where the symlinks are placed for enabled services. This shows you everything you have enabled, and what it wants=
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Systemctl service, some question on start on boot

Postby Chryses » Fri Feb 21, 2014 8:18 pm

ok, but here, for example is not present, network.target ntpdate.service, but start at boot, right?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby WarheadsSE » Fri Feb 21, 2014 8:20 pm

Just enable the service.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Systemctl service, some question on start on boot

Postby Chryses » Fri Feb 21, 2014 8:31 pm

So, here the list of the service that I've added, and for the list of all started service? systemctl?

Ps I edited my service, and added ntpdate.service, but nzbget and sickbeard start whit a "wrong" time

$this->bbcode_second_pass_code('', 'Thu Jan 01 1970 01:00:17 nzbget 12.0 daemon-mode
1970-01-01 01:00:25 INFO MAIN :: Checking database structure...')
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby WarheadsSE » Fri Feb 21, 2014 8:33 pm

systemctl enable ntpdate.service

$this->bbcode_second_pass_code('', '
After=ntpdate.service
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 4 guests