src/modules/systemd/systemd.c
/*
 * systemd_unit_is_service returns non-zero if the given object path is a
 * systemd service unit.
 */
systemd_unit_is_service returns non-zero if the given object path is a
systemd service unit.
systemd_unit_is_service returns non - zero if the given object path is a systemd service unit .
int systemd_unit_is_service(const char *path)
{
  int len = strnlen(path, 4096);
  const char *ext = path + MAX(0, len - 10);
  return (0 == strncmp(ext, "_2eservice", 11));  
}
int systemd_unit_is_service ( const char * path ) { int len = strnlen ( path , 4096 ) ; const char * ext = path + MAX ( 0 , len - 10 ) ; return ( 0 == strncmp ( ext , " " , 11 ) ) ; }
systemd_unit_is_service returns non-zero if the given object path is a
 systemd service unit.
systemd_unit_is_service returns non - zero if the given object path is a systemd service unit .
// service objects paths are unbounded in length and end in '_2eservice'