Changeset 8dee742
- Timestamp:
- Aug 8, 2017, 11:12:58 AM (9 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- 24d4504
- Parents:
- 581a6b2
- Location:
- src/python
- Files:
-
- 2 edited
-
bin/gnuboat (modified) (5 diffs)
-
config/gnuboat.service (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/python/bin/gnuboat
r581a6b2 r8dee742 41 41 rrdfile = "/var/lib/gnuboat/log-webservice.rrd" 42 42 shutdownfile = "/var/spool/gnuboat/shutdown.request" 43 logfile = "/var/log/gnuboat-nmea1983.log" 43 logdir = "/var/log/gnuboat" 44 nmeaLogFile = "nmea0183.log" 44 45 logperiod = 2 45 46 displayperiod = 5 … … 113 114 print " -l --logperiod Time in seconds to update the logs" 114 115 print " -d --displayperiod Timein seconds to update the display" 115 print " -o --output File where the NMEA1983 log is stored"116 print " -o --output Directory where the log files are stored (e.g. the NMEA0183 log files)" 116 117 117 118 … … 121 122 global logperiod 122 123 global displayperiod 123 global logfile 124 global logdir 125 global nmeaLogFile 124 126 global nmeafile 125 127 … … 144 146 displayperiod = argument 145 147 elif option in ("-o", "--output"): 146 log file= argument148 logdir = argument 147 149 else: 148 150 assert False, "unhandled option" … … 175 177 176 178 try: 177 nmeafile = open( logfile, 'a', 0)179 nmeafile = open("%s/%s" % (logdir, nmeaLogFile), 'a', 0) 178 180 except IOError as error: 179 181 print "Could not open the logfile: %s" % error -
src/python/config/gnuboat.service
r581a6b2 r8dee742 8 8 Group=root 9 9 WorkingDirectory=/tmp 10 ExecStart=/usr/bin/gnuboat -r /var/lib/gnuboat/gnuboat.rrd -s /var/spool/gnuboat/shutdown.request -o /var/log/gnuboat /nmea1983.log10 ExecStart=/usr/bin/gnuboat -r /var/lib/gnuboat/gnuboat.rrd -s /var/spool/gnuboat/shutdown.request -o /var/log/gnuboat 11 11 StandardOutput=syslog 12 12 StandardError=syslog
Note:
See TracChangeset
for help on using the changeset viewer.
