systemctl list all possible (including disabled) servicesHow does systemd use /etc/init.d scripts?Can...

Is it a good idea to copy a trader when investing?

What was the notion of limit that Newton used?

Succinct and gender-neutral Russian word for "writer"

A Cunning Riley Riddle

Was the Highlands Ranch shooting the 115th mass shooting in the US in 2019

Why did Captain America age?

When do you stop "pushing" a book?

Thesis' "Future Work" section – is it acceptable to omit personal involvement in a mentioned project?

What is the name of meteoroids which hit Moon, Mars, or pretty much anything that isn’t the Earth?

Cryptography and elliptic curves

Best species to breed to intelligence

Why was the ancient one so hesitant to teach Dr Strange the art of sorcery

How to handle DM constantly stealing everything from sleeping characters?

Why do unstable nuclei form?

Intersecting with the x-axis / intersecting the x-axis

Is every story set in the future "science fiction"?

How to evaluate sum with one million summands?

Two researchers want to work on the same extension to my paper. Who to help?

Examples where existence is harder than evaluation

How to get the IP of a user who executed a command?

Names of the Six Tastes

Why are parallelograms defined as quadrilaterals? What term would encompass polygons with greater than two parallel pairs?

date -d 'previous Monday" to display the preceding Monday

My perfect evil overlord plan... or is it?



systemctl list all possible (including disabled) services


How does systemd use /etc/init.d scripts?Can systemctl list all enabled services, including legacy services?What is the default path that systemd uses to locate locate System V scripts?a good way to “backup” systemd settings?In systemd, what starts units generated by generator?Is there in fact a race condition with systemd units specifying “After=suspend.target”Binding to systemd device units of connected bluetooth devicesSystemd user units fail to auto-startWhat is the default path that systemd uses to locate locate System V scripts?Force systemd mounting some partititions before anythingCan systemctl list all enabled services, including legacy services?Restricting systemd units to specific host based on DNS alias?Establishing reverse SSH-tunnels via systemd






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I have a "service" that originates from an /etc/init.d/XX script, and a systemd wrapper is generated for it. It doesn't autostart in any runlevel, and when I run systemctl --all or systemctl list-unit-files --all it doesn't show up in any list.



My hunch is that because it has no dependencies, hasn't been started, it isn't "loaded" into systemd (so not enabled, not loaded) so systemd doesn't list it.



Is there a way to get a full list of all possible services, even those not yet started and that aren't auto-started? Or do a systemctl search equivalent?



This related question only asks for a list of services that will be attempted at boot time.



The man page for systemctl under "--all" says To list all units installed on the system, use the list-unit-files command instead" but these units do not show up in the output of list-unit-files.










share|improve this question

























  • How you tried systemctl show XX?

    – muru
    yesterday











  • systemctl show XX works, but I'm looking for a way to list "all the possible options for XX" as it were...even those that don't auto start, I added to the question.

    – rogerdpack
    2 hours ago


















1















I have a "service" that originates from an /etc/init.d/XX script, and a systemd wrapper is generated for it. It doesn't autostart in any runlevel, and when I run systemctl --all or systemctl list-unit-files --all it doesn't show up in any list.



My hunch is that because it has no dependencies, hasn't been started, it isn't "loaded" into systemd (so not enabled, not loaded) so systemd doesn't list it.



Is there a way to get a full list of all possible services, even those not yet started and that aren't auto-started? Or do a systemctl search equivalent?



This related question only asks for a list of services that will be attempted at boot time.



The man page for systemctl under "--all" says To list all units installed on the system, use the list-unit-files command instead" but these units do not show up in the output of list-unit-files.










share|improve this question

























  • How you tried systemctl show XX?

    – muru
    yesterday











  • systemctl show XX works, but I'm looking for a way to list "all the possible options for XX" as it were...even those that don't auto start, I added to the question.

    – rogerdpack
    2 hours ago














1












1








1


2






I have a "service" that originates from an /etc/init.d/XX script, and a systemd wrapper is generated for it. It doesn't autostart in any runlevel, and when I run systemctl --all or systemctl list-unit-files --all it doesn't show up in any list.



My hunch is that because it has no dependencies, hasn't been started, it isn't "loaded" into systemd (so not enabled, not loaded) so systemd doesn't list it.



Is there a way to get a full list of all possible services, even those not yet started and that aren't auto-started? Or do a systemctl search equivalent?



This related question only asks for a list of services that will be attempted at boot time.



The man page for systemctl under "--all" says To list all units installed on the system, use the list-unit-files command instead" but these units do not show up in the output of list-unit-files.










share|improve this question
















I have a "service" that originates from an /etc/init.d/XX script, and a systemd wrapper is generated for it. It doesn't autostart in any runlevel, and when I run systemctl --all or systemctl list-unit-files --all it doesn't show up in any list.



My hunch is that because it has no dependencies, hasn't been started, it isn't "loaded" into systemd (so not enabled, not loaded) so systemd doesn't list it.



Is there a way to get a full list of all possible services, even those not yet started and that aren't auto-started? Or do a systemctl search equivalent?



This related question only asks for a list of services that will be attempted at boot time.



The man page for systemctl under "--all" says To list all units installed on the system, use the list-unit-files command instead" but these units do not show up in the output of list-unit-files.







systemd systemctl






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago







rogerdpack

















asked yesterday









rogerdpackrogerdpack

4061413




4061413













  • How you tried systemctl show XX?

    – muru
    yesterday











  • systemctl show XX works, but I'm looking for a way to list "all the possible options for XX" as it were...even those that don't auto start, I added to the question.

    – rogerdpack
    2 hours ago



















  • How you tried systemctl show XX?

    – muru
    yesterday











  • systemctl show XX works, but I'm looking for a way to list "all the possible options for XX" as it were...even those that don't auto start, I added to the question.

    – rogerdpack
    2 hours ago

















How you tried systemctl show XX?

– muru
yesterday





How you tried systemctl show XX?

– muru
yesterday













systemctl show XX works, but I'm looking for a way to list "all the possible options for XX" as it were...even those that don't auto start, I added to the question.

– rogerdpack
2 hours ago





systemctl show XX works, but I'm looking for a way to list "all the possible options for XX" as it were...even those that don't auto start, I added to the question.

– rogerdpack
2 hours ago










1 Answer
1






active

oldest

votes


















1














Are you running these commands as root? I believe that the list-unit-files command is exactly what you're looking for. It lists the unit files and not just the list of loaded services. I think you're likely looking at an issue with how your service is configured.



Maybe start by creating a dummy service and make sure it gets registered. Something that doesn't actually do anything. Then once that's working you can see how it differs from the service that isn't working. Or compare your service unit file with one of a simple service that is working.






share|improve this answer








New contributor



Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • There's a systemd SysV generator that translates init scripts to unit files, actually.

    – Jeff Schaller
    23 hours ago











  • OK I did some tests, even using a dummy systemd service, and it appears that if "any" service is disabled (i.e. bound to no targets), then after a systemctl daemon-reload it no longer shows up in any lists...so it's not an issue exclusive to the systemd-sysv-generator methinks...

    – rogerdpack
    2 hours ago












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f517872%2fsystemctl-list-all-possible-including-disabled-services%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Are you running these commands as root? I believe that the list-unit-files command is exactly what you're looking for. It lists the unit files and not just the list of loaded services. I think you're likely looking at an issue with how your service is configured.



Maybe start by creating a dummy service and make sure it gets registered. Something that doesn't actually do anything. Then once that's working you can see how it differs from the service that isn't working. Or compare your service unit file with one of a simple service that is working.






share|improve this answer








New contributor



Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • There's a systemd SysV generator that translates init scripts to unit files, actually.

    – Jeff Schaller
    23 hours ago











  • OK I did some tests, even using a dummy systemd service, and it appears that if "any" service is disabled (i.e. bound to no targets), then after a systemctl daemon-reload it no longer shows up in any lists...so it's not an issue exclusive to the systemd-sysv-generator methinks...

    – rogerdpack
    2 hours ago
















1














Are you running these commands as root? I believe that the list-unit-files command is exactly what you're looking for. It lists the unit files and not just the list of loaded services. I think you're likely looking at an issue with how your service is configured.



Maybe start by creating a dummy service and make sure it gets registered. Something that doesn't actually do anything. Then once that's working you can see how it differs from the service that isn't working. Or compare your service unit file with one of a simple service that is working.






share|improve this answer








New contributor



Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • There's a systemd SysV generator that translates init scripts to unit files, actually.

    – Jeff Schaller
    23 hours ago











  • OK I did some tests, even using a dummy systemd service, and it appears that if "any" service is disabled (i.e. bound to no targets), then after a systemctl daemon-reload it no longer shows up in any lists...so it's not an issue exclusive to the systemd-sysv-generator methinks...

    – rogerdpack
    2 hours ago














1












1








1







Are you running these commands as root? I believe that the list-unit-files command is exactly what you're looking for. It lists the unit files and not just the list of loaded services. I think you're likely looking at an issue with how your service is configured.



Maybe start by creating a dummy service and make sure it gets registered. Something that doesn't actually do anything. Then once that's working you can see how it differs from the service that isn't working. Or compare your service unit file with one of a simple service that is working.






share|improve this answer








New contributor



Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









Are you running these commands as root? I believe that the list-unit-files command is exactly what you're looking for. It lists the unit files and not just the list of loaded services. I think you're likely looking at an issue with how your service is configured.



Maybe start by creating a dummy service and make sure it gets registered. Something that doesn't actually do anything. Then once that's working you can see how it differs from the service that isn't working. Or compare your service unit file with one of a simple service that is working.







share|improve this answer








New contributor



Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this answer



share|improve this answer






New contributor



Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








answered yesterday









CallanCallan

1213




1213




New contributor



Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Callan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • There's a systemd SysV generator that translates init scripts to unit files, actually.

    – Jeff Schaller
    23 hours ago











  • OK I did some tests, even using a dummy systemd service, and it appears that if "any" service is disabled (i.e. bound to no targets), then after a systemctl daemon-reload it no longer shows up in any lists...so it's not an issue exclusive to the systemd-sysv-generator methinks...

    – rogerdpack
    2 hours ago



















  • There's a systemd SysV generator that translates init scripts to unit files, actually.

    – Jeff Schaller
    23 hours ago











  • OK I did some tests, even using a dummy systemd service, and it appears that if "any" service is disabled (i.e. bound to no targets), then after a systemctl daemon-reload it no longer shows up in any lists...so it's not an issue exclusive to the systemd-sysv-generator methinks...

    – rogerdpack
    2 hours ago

















There's a systemd SysV generator that translates init scripts to unit files, actually.

– Jeff Schaller
23 hours ago





There's a systemd SysV generator that translates init scripts to unit files, actually.

– Jeff Schaller
23 hours ago













OK I did some tests, even using a dummy systemd service, and it appears that if "any" service is disabled (i.e. bound to no targets), then after a systemctl daemon-reload it no longer shows up in any lists...so it's not an issue exclusive to the systemd-sysv-generator methinks...

– rogerdpack
2 hours ago





OK I did some tests, even using a dummy systemd service, and it appears that if "any" service is disabled (i.e. bound to no targets), then after a systemctl daemon-reload it no longer shows up in any lists...so it's not an issue exclusive to the systemd-sysv-generator methinks...

– rogerdpack
2 hours ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f517872%2fsystemctl-list-all-possible-including-disabled-services%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...