SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
DumpPreUserCmd bash script not exiting
Author Message
Post DumpPreUserCmd bash script not exiting 
Hi

debian squeeze
backuppc 3.1.0-9


If I run my bash script from the console as the backuppc user it runs
100% and works as expected, if run from backuppc while running the
backup the script is run and can be seen in ps but it just never exits
unless I kill the process then the backup carries on.

--
Thank you,

Mark Adrian Coetser
mark < at > tux-edo.co.za


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post DumpPreUserCmd bash script not exiting 
On Fri, Feb 10, 2012 at 12:01 AM, Mark Coetser <mark < at > tux-edo.co.za> wrote:
Hi

debian squeeze
backuppc        3.1.0-9


If I run my bash script from the console as the backuppc user it runs
100% and works as expected, if run from backuppc while running the
backup the script is run and can be seen in ps but it just never exits
unless I kill the process then the backup carries on.

The environment, current directory, stdin/out, etc. will be somewhat
different when started by the server. Does your script depend on any
of those?

--
Les Mikesell
lesmikesell < at > gmail.com

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post DumpPreUserCmd bash script not exiting 
Hi Les

Not that I am aware of, I am using the full path too all commands and if
run as "su - backuppc" "/full/path/to/script" as defined in the host.pl
it works as expected but when run from the backuppc dump command it runs
the first part of the script then just never exits

Thank you,

Mark Adrian Coetser
mark < at > tux-edo.co.za


On 10/02/2012 09:10, Les Mikesell wrote:
On Fri, Feb 10, 2012 at 12:01 AM, Mark Coetser<mark < at > tux-edo.co.za> wrote:
Hi

debian squeeze
backuppc 3.1.0-9


If I run my bash script from the console as the backuppc user it runs
100% and works as expected, if run from backuppc while running the
backup the script is run and can be seen in ps but it just never exits
unless I kill the process then the backup carries on.

The environment, current directory, stdin/out, etc. will be somewhat
different when started by the server. Does your script depend on any
of those?


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post DumpPreUserCmd bash script not exiting 
On Fri, Feb 10, 2012 at 1:27 AM, Mark Coetser <mark < at > tux-edo.co.za> wrote:

Not that I am aware of, I am using the full path too all commands and if
run as "su - backuppc" "/full/path/to/script" as defined in the host.pl
it works as expected but when run from the backuppc dump command it runs
the first part of the script then just never exits


Without seeing it, I can't even make a good guess. If it is an ssh
command to the target, it would wait for the last command to exit or
close what is its std out/err. Maybe some variable does not expand in
that environment and you end up with an empty argument list to
something like 'cat' which will then wait forever reading stdin. If
you can identify the process the shell is waiting for, strace might
show what system calls it is making.

--
Les Mikesell
lesmikesell < at > gmail.com

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post DumpPreUserCmd bash script not exiting 
On 10/02/2012 15:39, Les Mikesell wrote:
On Fri, Feb 10, 2012 at 1:27 AM, Mark Coetser<mark < at > tux-edo.co.za> wrote:

Not that I am aware of, I am using the full path too all commands and if
run as "su - backuppc" "/full/path/to/script" as defined in the host.pl
it works as expected but when run from the backuppc dump command it runs
the first part of the script then just never exits


Without seeing it, I can't even make a good guess. If it is an ssh
command to the target, it would wait for the last command to exit or
close what is its std out/err. Maybe some variable does not expand in
that environment and you end up with an empty argument list to
something like 'cat' which will then wait forever reading stdin. If
you can identify the process the shell is waiting for, strace might
show what system calls it is making.


Thanks it looks like it was winexe, for whatever reason if run directly
from the shell it would work 100% but as soon as it was run from
backuppc it wouldnt exit, I just backrounded winexe now and ran a
cleanup in DumpPostCmd too kill the winexe process after the backup was
complete and its now working.


Thank you,

Mark Adrian Coetser
mark < at > tux-edo.co.za

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB