LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2014, 07:19 AM   #1
krakanut
Member
 
Registered: Aug 2012
Distribution: The Slackware
Posts: 62

Rep: Reputation: Disabled
slackpkg interruption


Hi - was maintaining a remote server over vpn and running slackpkg upgrade-all. I walked away for a bit and lost my vpn - this before I was able to chose what I wanted to do with the config files of the upgraded programs. When I log back into machine and run slackpkg it says there is a version running already or I can choose to remove lock file.

1) Does slackpkg automatically chose a default option on config files after a period of time and if so what is its default selection - i.e. (K) keep old and review new later

2) Is it possible to bring up the currently running slackpkg session and if so how - jobs does not show any running process
 
Old 07-25-2014, 07:46 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,216

Rep: Reputation: Disabled
The message you got come from this code snippet in /usr/libexec/slackpkg-core-functions.h:
Code:
	# Checking if another instance of slackpkg is running
	#
	if [ "$(ls /var/lock/slackpkg.* 2>/dev/null)" ] && \
		[ "$CMD" != "search" ] && \
		[ "$CMD" != "help" ] && \
		[ "$CMD" != "file-search" ]; then
		echo -e "\
\nAnother instance of slackpkg is running. If this is not correct, you can\n\
remove /var/lock/slackpkg.* files and run slackpkg again.\n"
		cleanup
	else        
		ls /var/lock/slackpkg.* &>/dev/null || \
			touch /var/lock/slackpkg.$$
	fi
So it's triggered by the presence of a lock file, not a running process.

1) I don't thinks so.
2) I don't think so. However maybe not a "clean" way, I'd just remove the lock file (see above) and restart slackpkg, if the cleanup function in aforementioned script don't do that itself.

Last edited by Didier Spaier; 07-25-2014 at 07:51 AM.
 
1 members found this post helpful.
Old 07-25-2014, 07:48 AM   #3
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by krakanut View Post
1) Does slackpkg automatically chose a default option on config files after a period of time and if so what is its default selection - i.e. (K) keep old and review new later
The (K) option really describes what has *already* happened, so yes, in that sense it is the default. The other options do more stuff when you select them, the (K) option really just exits.

Quote:
Originally Posted by krakanut View Post
2) Is it possible to bring up the currently running slackpkg session and if so how - jobs does not show any running process
If there is no running process then there is no currently running slackpkg session. You just need to remove the lock file that the old process left behind when it died, there is nothing else to worry about.
 
Old 07-25-2014, 08:05 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,306

Rep: Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301
if you don't want that network problems interrupt anything you do in a terminal on a remote host, launch the processes on the host in a tmux (or screen) session.
 
1 members found this post helpful.
Old 07-26-2014, 08:01 AM   #5
krakanut
Member
 
Registered: Aug 2012
Distribution: The Slackware
Posts: 62

Original Poster
Rep: Reputation: Disabled
Thank you for the screen session suggestion - I had not been using this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 12:12 PM
KDE slow, no interruption rmdeboer82 Linux - Newbie 1 04-09-2014 06:14 PM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 05:04 AM
[SOLVED] download problem after interruption alan52bellvolvoman Linux - Software 4 09-09-2009 07:54 AM
Dpkg interruption Hanguk_J Linux - Software 0 11-18-2007 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration