Кроме того, для автозапуска сделал скрпит owfs.sh положил в папку /etc/init.d/ установил права на запуск(0755)
owfs.sh
Код: Выделить всё
### BEGIN INIT INFO
# Provides: owfs
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: S
# Default-Stop:
# Short-Description: starts owfs web server
# Description: starts owfs
### END INIT INFO
/opt/owfs/bin/owserver -u -p 3000
/opt/owfs/bin/owhttpd -s 3000 -p 3001
#/opt/owfs/bin/owfs –s 3000 /mnt/1wire/
sudo insserv -v /etc/init.d/owfs.sh
Как подобную вещь сделать с cycle.php?
напрочь вешает комп.
cycle.sh
Код: Выделить всё
### BEGIN INIT INFO
# Provides: cycle.sh
# Required-Start: $all
# Required-Stop: $all
# Default-Start: S
# Default-Stop:
# Short-Description: starts the cycle web server MJ
# Description: starts nginx using start-stop-daemon
### END INIT INFO
cd /var/www
php5 ./cycle.php