diff --git a/Scripts/sogod-wrapper b/Scripts/sogod-wrapper index 5c225e6e7..f0edd5956 100755 --- a/Scripts/sogod-wrapper +++ b/Scripts/sogod-wrapper @@ -21,7 +21,12 @@ # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. -PIDFILE=/var/run/sogo/sogod.$1 +if [ -z "$1" ] +then + PIDFILE=/var/run/sogo/sogod.pid +else + PIDFILE=/var/run/sogo/sogod.$1 +fi if [ -d /usr/lib/GNUstep ] then