Last active
October 1, 2016 14:15
-
-
Save akikoskinen/98b18251ca05b152d2df3548d057ef49 to your computer and use it in GitHub Desktop.
Starting Canon printer service automatically on a system using systemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starts the Canon printer service (ccpd) on demand when a printer (any printer) is attached. | |
Prerequisite: install the Canon printer driver packages from Canon's website as instructed. | |
Put the ccpd2.service file into `/etc/systemd/system` and run `systemctl daemon-reload && systemctl enable ccpd2` as root. | |
The file is called `cppd2.service` because systemd maps the `/etc/init.d/ccpd` script that comes with the printer driver package to the name `cppd`. Any name other than `cppd.service` would do just as fine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Printer daemon for Canon printers | |
Requires=cups.service | |
After=cups.service | |
[Service] | |
ExecStart=/usr/sbin/ccpd | |
Type=forking | |
[Install] | |
# To run the daemon always when the system is up | |
#WantedBy=multi-user.target | |
# To run the daemon when a printer is attached | |
WantedBy=printer.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment