changed defaults for cmd socket path
authorrealraum <realraum@realraum.at>
Fri, 29 May 2009 19:35:57 +0000 (19:35 +0000)
committerrealraum <realraum@realraum.at>
Fri, 29 May 2009 19:35:57 +0000 (19:35 +0000)
improved init script

door_daemon/options.c
udev.rules

index b438808..5bc6293 100644 (file)
@@ -200,7 +200,7 @@ void options_default(options_t* opt)
   string_list_init(&opt->log_targets_);
 
   opt->door_dev_ = strdup("/dev/door");
-  opt->command_sock_ = strdup("/var/run/door_daemon");
+  opt->command_sock_ = strdup("/var/run/door_daemon/cmd.sock");
 }
 
 void options_clear(options_t* opt)
@@ -238,8 +238,8 @@ void options_print_usage()
   printf("            [-L|--log] <target>:<level>[,<param1>[,<param2>..]]\n");
   printf("                                                add a log target, can be invoked several times\n");
 
-  printf("            [-d|--device] <tty device>          the device file e.g. /dev/ttyUSB0\n");
-  printf("            [-s|--command-sock] <unix sock>     the command socket e.g. /var/run/door_daemon\n");
+  printf("            [-d|--device] <tty device>          the device file e.g. /dev/door\n");
+  printf("            [-s|--command-sock] <unix sock>     the command socket e.g. /var/run/door_daemon/cmd.sock\n");
 }
 
 void options_print(options_t* opt)
index f85377e..0ffb04c 100644 (file)
@@ -2,6 +2,4 @@
 #
 # copy this to /etc/udev/rules.d/ and change serial number to your needs
 
-
-SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="A40015qH", SYMLINK+="door"
-
+SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="A40015qH", SYMLINK+="door", OWNER="door", GROUP="door"