[Devel] [PATCH libvzctl] scripts: vz-rst -- Add action scripts for AutoFS sake

Igor Sukhih igor at virtuozzo.com
Sat Apr 16 03:23:31 PDT 2016


On 04/16/2016 12:57 PM, Cyrill Gorcunov wrote:
> On Sat, Apr 16, 2016 at 11:58:37AM +0300, Igor Sukhih wrote:
>> +# AutoFS actions
>> +autofs_actions_path=/usr/libexec/criu/scripts/systemd-autofs-restart.sh
>> +if [ -f "$autofs_actions_path" ]; then
>> +	autofs_actions="--action-script $autofs_actions_path"
>>
>> The only question is the systemd-autofs-restart.sh script is safe enougth to
>> call on any distro (non systemd)
> I guess so, Stas?
# Skip container, if it's not systemd based
[ $($JOIN_CT basename -- $(readlink /proc/1/exe)) == "systemd" ] || exit 0


I have inspected  systemd-autofs-restart.sh and it looks like there is 
logic to check for non systemd distros

commited.

--
  Igor


More information about the Devel mailing list