Add configs.
This commit is contained in:
parent
b9db8ae710
commit
0a65b3af20
|
@ -0,0 +1,38 @@
|
|||
[inet_http_server]
|
||||
port = *:9001
|
||||
|
||||
[program:gpsd]
|
||||
command=/usr/sbin/gpsd -N -n -F /var/run/gpsd.sock -P /var/run/gpsd.pid /dev/ttyAMA0
|
||||
numprocs=1
|
||||
priority=1
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
||||
[program:gps-watcher]
|
||||
command=/usr/bin/python /opt/gps-timekeep/watcher-daemon/gps-watcher.py
|
||||
directory=/opt/gps-timekeep/watcher-daemon
|
||||
numprocs=1
|
||||
priority=2
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
||||
[program:rpi_gpio_ntp]
|
||||
command=/opt/gps-timekeep/bin/rpi_gpio_ntp -f -N 1 -g 18
|
||||
numprocs=1
|
||||
priority=100
|
||||
autostart=false
|
||||
autorestart=false
|
||||
|
||||
[program:ntpd]
|
||||
command=/usr/sbin/ntpd -n -c /opt/gps-timekeep/configs/ntp.conf -p /var/run/ntpd.pid -g -u 102:104
|
||||
numprocs=1
|
||||
priority=200
|
||||
autostart=false
|
||||
autorestart=false
|
||||
|
||||
[program:lighttpd]
|
||||
command=/usr/sbin/lighttpd -D -f /opt/gps-timekeep/configs/lighttpd.conf
|
||||
numprocs=1
|
||||
priority=300
|
||||
autostart=true
|
||||
autorestart=true
|
|
@ -0,0 +1,31 @@
|
|||
server.modules = (
|
||||
"mod_access",
|
||||
"mod_alias",
|
||||
"mod_compress",
|
||||
"mod_redirect",
|
||||
"mod_cgi",
|
||||
)
|
||||
|
||||
server.document-root = "/run/www"
|
||||
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
|
||||
server.errorlog = "/var/log/lighttpd/error.log"
|
||||
server.pid-file = "/var/run/lighttpd.pid"
|
||||
server.username = "www-data"
|
||||
server.groupname = "www-data"
|
||||
server.port = 80
|
||||
|
||||
index-file.names = ( "index.html" )
|
||||
url.access-deny = ( "~", ".inc" )
|
||||
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".py" )
|
||||
|
||||
compress.cache-dir = "/var/cache/lighttpd/compress/"
|
||||
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
|
||||
|
||||
# redirect cgi-bin to /opt/gps-timekeep
|
||||
$HTTP["url"] =~ "/cgi-bin/" { cgi.assign = ( "" => "" ) }
|
||||
alias.url = ( "/cgi-bin/" => "/opt/gps-timekeep/cgi-bin/" )
|
||||
|
||||
# default listening port for IPv6 falls back to the IPv4 port
|
||||
#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
|
||||
#include_shell "/usr/share/lighttpd/create-mime.assign.pl"
|
||||
#include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
|
|
@ -0,0 +1,16 @@
|
|||
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
|
||||
|
||||
driftfile /var/lib/ntp/ntp.drift
|
||||
|
||||
# Server from shared memory provided by gpsd
|
||||
server 127.127.28.0 minpoll 4 maxpoll 4
|
||||
# also 'prefer'?
|
||||
fudge 127.127.28.0 time1 +0.1456 refid SHM
|
||||
# maybe also 'stratum 15'?
|
||||
|
||||
# user mode PPS
|
||||
server 127.127.28.1 minpoll 4 prefer
|
||||
fudge 127.127.28.1 refid UPPS
|
||||
|
||||
# UK pool servers
|
||||
pool uk.pool.ntp.org iburst
|
Loading…
Reference in New Issue