How to enable/disable TeamViewer service on CentOS 7.x

  • use teamviewerd.sysv
# cd /opt/teamviewer/tv_bin/script
# cp teamviewerd.sysv /etc/init.d/
# service teamviewerd.sysv start
Starting teamviewerd...method return sender=org.freedesktop.DBus -> dest=:1.121 reply_serial=2
   uint32 2

# systemctl status teamviewerd.sysv
● teamviewerd.sysv.service - LSB: TeamViewer remote control daemon
   Loaded: loaded (/etc/rc.d/init.d/teamviewerd.sysv; bad; vendor preset: disabled)
   Active: active (running) since Wed 2018-01-17 13:26:49 JST; 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2596 ExecStop=/etc/rc.d/init.d/teamviewerd.sysv stop (code=exited, status=0/SUCCESS)
  Process: 3136 ExecStart=/etc/rc.d/init.d/teamviewerd.sysv start (code=exited, status=0/SUCCESS)
 Main PID: 3154 (teamviewerd)
   CGroup: /system.slice/teamviewerd.sysv.service
           └─3154 /opt/teamviewer/tv_bin/teamviewerd -d

# systemctl enable teamviewerd.sysv
teamviewerd.sysv.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig teamviewerd.sysv on