LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2016, 10:14 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
What should I use to create daemons?


I am trying to create some polling service using PHP. Yes, I know I can use a CRON job, but would like to instead create some sort of service.

I started out writing some /etc/init.d/my_service script to do so.

Then I read about upstart (i.e. https://www.digitalocean.com/communi...-how-to-use-it) and how it should be used instead.

Then I read that upstart is going away, and I should use systemd https://www.freedesktop.org/wiki/Software/systemd/ instead.

Currently using Centos6. Recommendations?
 
Old 11-11-2016, 10:22 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
What should I use to create daemons?

Quote:
Originally Posted by NotionCommotion View Post
Recommendations?
some magic power and a big bowl, liquid and fire. stir slowly while repeating these words, boil boil trouble and toil.

Sorry I couldn't resist.
 
Old 11-11-2016, 10:48 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
Centos 6 uses sysvinit rather than systemd or upstart - so writing a SysV style init script as you were doing was the correct approach for that distribution. If you want to play with systemd, then you will need to move to Centos 7.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Daemons palisetty_suman Linux - Newbie 4 04-19-2009 02:24 PM
daemons cnm Linux - Newbie 4 11-08-2006 07:12 AM
daemons LinuxLala Linux - General 4 11-28-2003 01:37 PM
Daemons mariua Linux - General 0 10-11-2001 05:03 AM
daemons acren Linux - Security 3 07-06-2001 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration