Discussion:
[PacketFence-users] Can not restart packetfence after upgrade to 7.0
Forum
2017-05-04 15:32:02 UTC
Permalink
Hi,

Recently, I upgraded to Packetfence 7.0, following all instructions in the
documentation.
I can not restart packetfence manually:

service packetfence restart
Redirecting to /bin/systemctl restart packetfence.service
Failed to restart packetfence.service: Unit packetfence.service failed to
load: No such file or directory.

Strang thing is that a machine reboot results in starting packetfence also.

Platform:
rpm --query centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64

best,

Jaap
Louis Munro
2017-05-04 15:39:07 UTC
Permalink
That command no longer exists in PF 7.

PacketFence is a collection of services, not one service.
As such it's handled as a "target" by systemd.

E.g.
# systemctl isolate packetfence


You might find it easier to start and stop services using pfcmd:

# /usr/local/pf/bin/pfcmd service pf start

But then again, all pfcmd does is call systemctl.

The reason PacketFence will start on boot is that it's the default target.

# systemctl get-default
packetfence.target

Regards,
--
Louis Munro
***@inverse.ca <mailto:***@inverse.ca> :: www.inverse.ca <http://www.inverse.ca/>
+1.514.447.4918 x125 :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and PacketFence (www.packetfence.org <http://www.packetfence.org/>)
Post by Forum
service packetfence restart
Redirecting to /bin/systemctl restart packetfence.service
Failed to restart packetfence.service: Unit packetfence.service failed to
load: No such file or directory.
Loading...