2
0
mirror of https://github.com/deajan/osync synced 2024-11-11 07:10:40 +00:00

Removed hard coded program name in init script

This commit is contained in:
deajan 2015-04-13 16:46:15 +02:00
parent 6852e4ece7
commit 447bd7f36d
2 changed files with 6 additions and 5 deletions

View File

@ -31,6 +31,7 @@ UNDER WORK
RECENT CHANGES RECENT CHANGES
-------------- --------------
- Removed hardcoded program name from init script
- 01 Avr. 2015: Osync v1.00pre - 01 Avr. 2015: Osync v1.00pre
- Improved and refactored the soft deletion routine by merging conflict backup and soft deletion - Improved and refactored the soft deletion routine by merging conflict backup and soft deletion
- Reworked soft deletion code to handle a case where a top level directory gets deleted even if the files contained in it are not old enough (this obviously shouldn't happen on most FS) - Reworked soft deletion code to handle a case where a top level directory gets deleted even if the files contained in it are not old enough (this obviously shouldn't happen on most FS)
@ -47,7 +48,7 @@ RECENT CHANGES
- Prevent debug mode to send alert emails - Prevent debug mode to send alert emails
- Fixed an infamous bug introduced with exclude pattern globbing preventing multiple exludes to be processed - Fixed an infamous bug introduced with exclude pattern globbing preventing multiple exludes to be processed
- Fixed an issue with empty RSYNC_EXCLUDE_FILES - Fixed an issue with empty RSYNC_EXCLUDE_FILES
- Lowered default compression level for email alerts (for low end systems - Lowered default compression level for email alerts (for low end systems)
- Prevent exclude pattern globbing before the pattern reaches the rsync cmd - Prevent exclude pattern globbing before the pattern reaches the rsync cmd
- Fixed some missing child pids for time control to work - Fixed some missing child pids for time control to work
- Prevent creation of a sync-id less log file when DEBUG is set - Prevent creation of a sync-id less log file when DEBUG is set

View File

@ -12,7 +12,7 @@ progpath=/usr/local/bin
confdir=/etc/osync confdir=/etc/osync
pidfile=/var/run/$prog pidfile=/var/run/$prog
lockfile=/var/lock/subsys/$prog lockfile=/var/lock/subsys/$prog
SCRIPT_BUILD=2605201401 SCRIPT_BUILD=1304201501
if [ ! -f $progpath/$progexec ] && [ ! -f $progexec ] if [ ! -f $progpath/$progexec ] && [ ! -f $progexec ]
then then
@ -43,7 +43,7 @@ start() {
then then
./$progexec $cfgfile --on-changes > /dev/null 2>&1 & ./$progexec $cfgfile --on-changes > /dev/null 2>&1 &
else else
echo "Cannot find osync executable in $progpath" echo "Cannot find $prog executable in $progpath"
exit 1 exit 1
fi fi
@ -66,7 +66,7 @@ start() {
stop() { stop() {
if [ ! -f $pidfile-* ] if [ ! -f $pidfile-* ]
then then
echo "No running osync instances found." echo "No running $prog instances found."
exit 1 exit 1
fi fi
@ -92,7 +92,7 @@ stop() {
status() { status() {
if [ ! -f $pidfile-* ] if [ ! -f $pidfile-* ]
then then
echo "Cannot find any running osync instance." echo "Cannot find any running $prog instance."
exit 1 exit 1
fi fi