modified: getepg.php 若干修正
new file: sudoers.d/01_first 必要なsudoの設定
}
else if( (intval($wakeupvars->getepg_time) + intval($settings->getepg_timer) * 3600 ) <= time() ) {
$wakeupvars->reason = "getepg";
- exec( INSTALL_PATH."/getepg.php" );
+ exec( INSTALL_PATH."/getepg.php >/dev/null 2>&1" );
$wakeupvars->getepg_time = time();
}
else {
$wakeupvars->reason = "other";
}
$wakeupvars->asXML(INSTALL_PATH. "/settings/wakeupvars.xml");
+ chown(INSTALL_PATH. "/settings/wakeupvars.xml", 0666 );
}
catch( Exception $e ) {
//
if( pcntl_fork() != 0 )
exit;
pcntl_signal(SIGTERM, "handler");
+
+ fclose(STDIN);
+ fclose(STDOUT);
+ fclose(STDERR);
}
function check_file( $file ) {
--- /dev/null
+www-data ALL=NOPASSWD: /sbin/shutdown
+root ALL=(ALL:ALL) ALL