Skip to content

Commit c0d30fc

Browse files
author
Joaquin Muguerza
committed
Fixed bug: log dir doesn't exists
1 parent cb530cb commit c0d30fc

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

conf/pepsal-arguments

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ then
6262
else
6363
echo "debug=" >>/etc/pepsal/.pepsal.conf
6464
fi
65+

conf/start.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
mkdir -p $(dirname ${log_file})
12
/usr/bin/pepsal -d ${debug} ${fastopen} -p ${port} -a ${ip_address} -c ${max_conns} -g ${gcc_interval} -l ${log_file} -t ${pending_lifetime}

debian/pepsal.init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[ -r /etc/pepsal/.pepsal.conf ] && . /etc/pepsal/.pepsal.conf
2121

2222
# Create log dir if not existant
23-
mkdir -p /var/log/pepsal
23+
mkdir -p $(dirname ${log_file})
2424

2525
# PATH should only include /usr/* if it runs after the mountnfs.sh script
2626
PATH=/sbin:/usr/sbin:/bin:/usr/bin

debian/pepsal.service

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ After=systemd-journald-dev-log.socket
66
[Service]
77
Type=forking
88
ExecStartPre=/etc/pepsal/pepsal-arguments
9-
ExecStartPre=/bin/mkdir -p /var/log/pepsal
109
ExecStart=/bin/sh -ac ". /etc/pepsal/.pepsal.conf ; sh /etc/pepsal/start.ini"
1110

1211
[Install]

0 commit comments

Comments
 (0)