… | |
… | |
125 | slog (L_INFO, _("vped %s (%s %s) starting"), VERSION, __DATE__, __TIME__); |
125 | slog (L_INFO, _("vped %s (%s %s) starting"), VERSION, __DATE__, __TIME__); |
126 | |
126 | |
127 | return 0; |
127 | return 0; |
128 | } |
128 | } |
129 | |
129 | |
130 | void |
|
|
131 | make_names (void) |
|
|
132 | { |
|
|
133 | if (!conf.pidfilename) |
|
|
134 | conf.pidfilename = strdup (LOCALSTATEDIR "/run/vped.pid"); |
|
|
135 | |
|
|
136 | if (!confbase) |
|
|
137 | asprintf (&confbase, "%s/vpe", CONFDIR); |
|
|
138 | } |
|
|
139 | |
|
|
140 | void run_script (const run_script_cb &cb, bool wait) |
130 | void run_script (const run_script_cb &cb, bool wait) |
141 | { |
131 | { |
142 | int pid; |
132 | int pid; |
143 | |
133 | |
144 | if ((pid = fork ()) == 0) |
134 | if ((pid = fork ()) == 0) |