From 790dd268950e4466e605788bcb7c632bcfac7a0b Mon Sep 17 00:00:00 2001 From: realraum Date: Fri, 29 May 2009 19:35:57 +0000 Subject: [PATCH] changed defaults for cmd socket path improved init script --- door_daemon/options.c | 6 +++--- udev.rules | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/door_daemon/options.c b/door_daemon/options.c index b438808..5bc6293 100644 --- a/door_daemon/options.c +++ b/door_daemon/options.c @@ -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] :[,[,..]]\n"); printf(" add a log target, can be invoked several times\n"); - printf(" [-d|--device] the device file e.g. /dev/ttyUSB0\n"); - printf(" [-s|--command-sock] the command socket e.g. /var/run/door_daemon\n"); + printf(" [-d|--device] the device file e.g. /dev/door\n"); + printf(" [-s|--command-sock] the command socket e.g. /var/run/door_daemon/cmd.sock\n"); } void options_print(options_t* opt) diff --git a/udev.rules b/udev.rules index f85377e..0ffb04c 100644 --- a/udev.rules +++ b/udev.rules @@ -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" -- 1.7.10.4