Comments (1)
it uses systemd.If you want to uses systemctl ,you should install daemonize form AUR,
add
SYSTEMD_PID=$(ps -ef | grep '/lib/systemd/systemd --system-unit=basic.target$' | grep -v unshare | awk '{print $2}')
if [ -z "$SYSTEMD_PID" ]; then
sudo /usr/bin/daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
SYSTEMD_PID=$(ps -ef | grep '/lib/systemd/systemd --system-unit=basic.target$' | grep -v unshare | awk '{print $2}')
fi
if [ -n "$SYSTEMD_PID" ] && [ "$SYSTEMD_PID" != "1" ]; then
exec sudo /usr/bin/nsenter -t $SYSTEMD_PID -a su - $LOGNAME
fi
to /etc/profile
add
%sudo ALL=(ALL) NOPASSWD: /usr/sbin/daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
%sudo ALL=(ALL) NOPASSWD: /usr/bin/nsenter -t [0-9]* -a su - [a-zA-Z0-9]*
to /etc/sudoers
and run
sudo -s
source /etc/profile
to apply them.
Then you can use systemctl
@Sirred01
from arch-wsl.
Related Issues (20)
- Stray .dockerenv causes unexpected behaviour in software HOT 1
- Does this distro for WSL support graphical interfaces and chinese language?
- 无法设置中文 HOT 7
- what is the root password HOT 2
- pacman NOEXTRACT on man pages HOT 3
- if this wsl-distribution don't support systemed? HOT 5
- yay and paru are tooooooo slow,they can never ever been proxied HOT 1
- ARM support need HOT 16
- WslRegisterDistribution failed HOT 3
- add open source license HOT 3
- About locale HOT 5
- sussy WLS window icon HOT 2
- Pacman too far out of date HOT 3
- Rename distro during install? HOT 1
- Cannot install yay/pakku as AUR helper in WSL1 HOT 16
- Remove /.dockerenv HOT 2
- Second Instance HOT 1
- This CA Root certificate is not trusted because it is not in the Trusted Root Certification Authorities store. HOT 1
- [QUESTION] - Publishing the WSL image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arch-wsl.