summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index ba17ab81..08a78216 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -117,6 +117,7 @@ static int gpsd_control(char *action, char *argument)
int main(int argc, char *argv[])
{
+ openlog("gpsdctl", 0, LOG_DAEMON);
if (argc != 3) {
(void)syslog(LOG_ERR, "requires action and argument (%d)", argc);
exit(1);