[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
Tiny Tiny RSS • update_daemon wont run on OS X Server
Page 1 of 2

update_daemon wont run on OS X Server

Posted: 20 Mar 2010, 19:05
by Filius

Re: update_daemon wont run on OS X Server

Posted: 21 Mar 2010, 12:08
by fox
You can safely comment the pcntl_signal() out and it should work afterwards. It's weird that PHP on OS X is build without pcntl functions, though.

To add: this would work for the regular update daemon. The forking one (update_daemon2.php) requires pcntl stuff to work properly.

Re: update_daemon wont run on OS X Server

Posted: 21 Mar 2010, 22:23
by Tarul

Re: update_daemon wont run on OS X Server

Posted: 22 Mar 2010, 10:11
by Filius
Tarul, thank you!

I didnt even think about that solution! It works perfectly, and is imo much more elegant than running update_daemon in screen. You saved my day! (also thanks to fox for beeing head-man, and providing a workaround ^_^)

Im a happy camper!

Cheers!

Re: update_daemon wont run on OS X Server

Posted: 22 Mar 2010, 11:12
by fox
I'll add function_exists() there so you wouldn't need the workaround in the future. Nice thinking to use launchd on OS X, by the way. I'll link this topic from the FAQ. :)

Re: update_daemon wont run on OS X Server

Posted: 06 Jan 2011, 00:54
by Tarul

Re: update_daemon wont run on OS X Server

Posted: 20 May 2013, 18:55
by XianPalin
I just wanted to post a reply to this as I had to make some modifications to get this working on 1.7.9, and this was really the only post I could find that talked about launchd.

The main change is that in the plist file, it should be --feeds instead of -feeds (i.e. two dashes instead of one). It wasn't logging any error with only one dash, but it also wasn't updating the feeds.

The second change needed is to not use sudo when executing the launchctl command. If you use sudo, the ttrss update script spits back an error saying not to run it as superuser.

I believe those changes are all you need to get it working with 1.7.9. I'm running on OS X 10.8.2. Hopefully this will help someone else that is using a Mac and wants to automatically refresh their feeds, as the update page seems more geared towards Linux installs.

Re: update_daemon wont run on OS X Server

Posted: 07 Apr 2014, 01:47
by BLOGfile

Re: update_daemon wont run on OS X Server

Posted: 07 Apr 2014, 03:03
by shannonp
The ideal place to put this custom launchd plist file is /Library/LaunchDaemons as per Apple's guidelines.

Typically LaunchAgents are per-user whereas LaunchDaemons are system-wide. /System/Library are for system only items, custom items should reside in /Library. Putting items into the wrong location may be removed if a system update is performed. Refer to "man launchd" or Apple's Developer Documentation for more info.

Shannon

Re: update_daemon wont run on OS X Server

Posted: 07 Apr 2014, 03:30
by BLOGfile

Re: update_daemon wont run on OS X Server

Posted: 07 Apr 2014, 05:14
by shannonp
I have to disagree there. I have mine setup as I mentioned and it's been working fine since day 1. I have all my custom services (MySQL, MythTV etc etc) setup the same and everything starts up at boot time as Apple advise.

Shannon

Re: update_daemon wont run on OS X Server

Posted: 07 Apr 2014, 05:43
by shannonp

Re: update_daemon wont run on OS X Server

Posted: 07 Apr 2014, 06:41
by BLOGfile

Re: update_daemon wont run on OS X Server

Posted: 08 Apr 2014, 00:00
by gigAcEj

Re: update_daemon wont run on OS X Server

Posted: 08 Apr 2014, 02:52
by shannonp
This would be another way to do it as long as a user is logged in. As I run the Server version of OSX 10.9 I don't want to have that restriction. You could also apply the same theory to a non-Server version of the OS, just tweak the plist and pop it into /Library/LaunchDaemons.

My php isn't running as root as you'll see by the plist file. Check out "man launchd.plist" for more info on running system-level launchd items as other users. Also looking at BLOGfile's plist, that has the same "UserName" key as mine so it may not be run as root either.

Shannon