Jump to content

怎样设置插入USB重启docker?


Go to solution Solved by always67,

Recommended Posts

安装docker版的cups,打印机每次自动休眠后再开机,需要重启cups才能正常打印。

现在利用udev设置了‘mg2400.rules’mg2400.rules 内容很简单,就是检测插入USB,运行脚本rs重启cups的docker。

利用bash /root/rs的方式测试脚本是正常的,但是开关打印机并不能触发脚本是怎么回事?

@ich777 do you have time to help me?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...