From b3e6461c5b9da4612fc87be5118b848fcc22e097 Mon Sep 17 00:00:00 2001 From: Joseph Graham Date: Wed, 5 Jul 2017 17:45:04 +0100 Subject: Changed how it checks if transmission-daemon is running. This should allow it to work with init systems other than systemd. --- pacman2pacman-get | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pacman2pacman-get b/pacman2pacman-get index a9b0b22..bf51120 100644 --- a/pacman2pacman-get +++ b/pacman2pacman-get @@ -51,8 +51,8 @@ pkg_cache_location="${filename%/*}/" source /etc/pacman2pacman.conf # Check if transmission daemon is running. -if ! systemctl show --property='ActiveState' transmission | grep -q 'ActiveState=active' -then +if ! pidof transmission-daemon > /dev/null + then echoerr $"Error: The transmission daemon is not running." exit 1 fi -- cgit v1.2.2