aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/starter.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-05-16 14:24:03 +0000
committerMartin Willi <martin@strongswan.org>2006-05-16 14:24:03 +0000
commitf2c2d395ff756505be10b9d3e8420af498f33cc2 (patch)
tree7202a334e20710bab1d0b3e848ecc964168ccf5f /src/starter/starter.c
parenteedfdfbe6e15ecc724eca705688472e8be73afec (diff)
downloadstrongswan-f2c2d395ff756505be10b9d3e8420af498f33cc2.tar.bz2
strongswan-f2c2d395ff756505be10b9d3e8420af498f33cc2.tar.xz
- introduced autotools
- first working version - make dist should work - things to do: - UML testing! - more cleanups
Diffstat (limited to 'src/starter/starter.c')
-rw-r--r--src/starter/starter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c
index 2806622e4..ee7eae3bd 100644
--- a/src/starter/starter.c
+++ b/src/starter/starter.c
@@ -200,7 +200,7 @@ int main (int argc, char **argv)
signal(SIGALRM, fsig);
signal(SIGUSR1, fsig);
- plog("Starting strongSwan IPsec %s [starter]...", ipsec_version_code());
+ plog("Starting strongSwan %s IPsec [starter]...", ipsec_version_code());
/* verify that we can start */
if (getuid() != 0)
@@ -253,9 +253,9 @@ int main (int argc, char **argv)
last_reload = time(NULL);
- if (stat(MY_PID_FILE, &stb) == 0)
+ if (stat(STARTER_PID_FILE, &stb) == 0)
{
- plog("starter is already running (%s exists) -- no fork done", MY_PID_FILE);
+ plog("starter is already running (%s exists) -- no fork done", STARTER_PID_FILE);
exit(0);
}
@@ -289,7 +289,7 @@ int main (int argc, char **argv)
/* save pid file in /var/run/starter.pid */
{
- FILE *fd = fopen(MY_PID_FILE, "w");
+ FILE *fd = fopen(STARTER_PID_FILE, "w");
if (fd)
{
@@ -311,7 +311,7 @@ int main (int argc, char **argv)
starter_stop_charon();
starter_netkey_cleanup();
confread_free(cfg);
- unlink(MY_PID_FILE);
+ unlink(STARTER_PID_FILE);
unlink(INFO_FILE);
#ifdef LEAK_DETECTIVE
report_leaks();