Init daemon to Systemd

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Init daemon to Systemd

Postby MattScherbatsky » Wed Sep 19, 2012 6:56 pm

This is my old daemon:

$this->bbcode_second_pass_code('', '#!/bin/bash
curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' > /tmp/RaspIP.txt
dropbox_uploader upload /tmp/RaspIP.txt RaspIP.txt
while sleep 1800
do
curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' > /tmp/RaspIP.txt
dropbox_uploader upload /tmp/RaspIP.txt RaspIP.txt
done')

I put it in /etc/rc.d/ in old system.
Now I have systemd... How can I create new daemon?
MattScherbatsky
 
Posts: 34
Joined: Sat Aug 04, 2012 11:04 am

Re: Init daemon to Systemd

Postby WarheadsSE » Wed Sep 19, 2012 7:01 pm

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

Re: Init daemon to Systemd

Postby pepedog » Wed Sep 19, 2012 7:10 pm

You can look how to get rc.local working and call to the script from there https://wiki.archlinux.org/index.php/Sy ... s#rc.local
or look how its done on same page
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 50 guests