summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCameron Norman <CameronNemo@users.noreply.github.com>2014-06-02 20:26:14 -0700
committerdormando <dormando@rydia.net>2015-11-18 02:38:21 -0800
commit00b34fd951d8a00ec8e4911ebad444bf77069bc8 (patch)
tree47133126ddeb4e42b18bf11cd770c87857c61208 /scripts
parent17df335797ac628586bec6e47079f6bc560bf806 (diff)
downloadmemcached-00b34fd951d8a00ec8e4911ebad444bf77069bc8.tar.gz
Use unlink instead of `rm -f` in start-memcached script
This is necessary for an Upstart job, because the call out to rm -f causes Perl to fork off a process, and Upstart think that new process is the main one (not the exec'd memcached process later on).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/start-memcached2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/start-memcached b/scripts/start-memcached
index ce39fa6..8b64a20 100755
--- a/scripts/start-memcached
+++ b/scripts/start-memcached
@@ -97,7 +97,7 @@ if(-e $pidfile)
print STDERR "memcached is already running.\n";
exit;
}else{
- `rm -f $localpid`;
+ unlink $pidfile;
}
}